comfyui-mask-boundingbox

comfyui-mask-boundingbox
★ 31

掩码处理包围框图像裁切局部替换
对图像掩码进行阈值化并选取最大包围框,输出按指定最小宽高居中裁切并缩放的掩码与图像,便于局部替换或修补。
💡 用于依据掩码裁切并缩放图像以便局部修补或替换。
🍴 7 Forks💻 Python🔄 2024-05-22
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/51137d50651f
ComfyUI Mask Bounding Box Example
📄 README

ComfyUI – Mask Bounding Box

Overview

The ComfyUI Mask Bounding Box Plugin provides functionalities for selecting a specific size mask from an image. Can be combined with ClipSEG to replace any aspect of an SDXL image with an SD1.5 output.

Features

  • Thresholding: Threshold by mask value
  • Mask: Selects the largest bounded mask.
  • Image: Applies the selected image to the bounded mask.
  • Minimum width/height: centered as much as available around the bounding box.
  • Usage

  • Add the ‘Mask Bounding Box’ plugin
  • Attach a mask and image
  • Output the resulting bounding box and resized mask/images.
  • Great for inpainting or selecting certain objects.

    Feedback & Contributions

    If you have feedback or would like to contribute to the development of this plugin, please submit a pull request.