Introduction:
This article will provide a tutorial about ComfyUI Core Node —— Mask+Sampler
Mask
1. Load Image As Mask
2. Invert Mask
3. Solid Mask
It acts as a canvas for generating images and can be combined with Mask Composite
4. Convert Mask To Image
5. Convert Image To Mask
Convert the mask to a grayscale image.
6. Feather Mask
7. Crop Mask
Clip the mask to a new shape
8. Mask Composite
Paste one mask into another, connecting Solid Mask. A Value of 0 represents black, which will not be drawn, while a Value of 1 represents white, which will be drawn. The values in the two connected Solid Masks must be different, otherwise the mask will not take effect.
Input:
● destination(1): The mask to be pasted in, equivalent to the final image dimensions.
● source(0): The mask to be pasted.
Parameter:
● X,Y: Adjust the position of the source.
operation (blending method): use multiply when source is 0, and use add when source is 1
Sampler
1. Ksampler
Input:
latent_image: The latent image to be denoised.
Output:
LATENT: The denoised latent image
2. Ksampler Advanced
You can manually control the noise.