Nodes/Image Misc/Apply Mask using AFFCE
ComfyUI Node

Apply Mask using AFFCE

Apply a mask to an image using Approximate Fast Foreground Colour Estimation. https://github.com/Photoroom/fast-foreground-estimation

By set-soft·Created about a year ago·Updated 7 months ago· 2
Apply Mask using AFFCE
  • images
  • masks
  • image
  • mask
blur_size90
blur_size_two6
fill_colorfalse
color#000000
batchedtrue
Categoryimage/manipulation

Inputs (7)

NameTypeDefaultDescription
imagesIMAGE
masksMASK
blur_sizeINT901–255
blur_size_twoINT61–255
fill_colorBOOLEANfalseFill the background using a color. Returns an RGB image, otherwise an RGBA.
colorSTRING#000000Color for fill. Can be an hexadecimal (#RRGGBB). Can comma separated RGB values in [0-255] or [0-1.0] range.
batchedBOOLEANtrueProcess the images at once. Faster, needs more memory

Outputs (2)

NameTypeDescription
imageIMAGE
maskMASK