Model
Trends
.ai
Model
Trends
.ai
최고의 오픈 소스 AI 모델

ComfyUI의 Load Image (as Mask) 노드

Load Image (as Mask) turns one channel of a picture (alpha, red, green or blue) into a MASK, so black-and-white mask files or painted layers can drive inpainting and compositing.
노드 팩: ComfyUI core
카테고리: 마스크와 인페인팅
이 페이지는 아직 번역되지 않아 영어로 표시됩니다.

Load Image (as Mask)이(가) 하는 일

Where Load Image gives you the picture, Load Image (as Mask) gives you a mask built from a chosen channel. Pick alpha for transparent PNGs, or red for a plain black-and-white mask file: white pixels become 1 (affected), black pixels 0 (protected). The output is a single-channel MASK at the size of the file.
It is the standard way to bring in a mask drawn in another program, a mask exported from a segmentation model, or a soft gradient mask for blending. Combine it with Grow Mask and Feather Mask to soften the edge before inpainting.

입력

이름
타입
의미
image
COMBO/upload
The mask file from ComfyUI/input.
channel
COMBO
alpha, red, green or blue. The channel that becomes the mask.

출력

이름
타입
의미
MASK
MASK
A float mask with 1 where the channel is bright (or transparent for alpha).
AD
설치는 건너뛰세요: 클라우드에 미리 설치된 ComfyUI 워크플로
BitVector는 완성된 ComfyUI 워크플로를 자체 GPU에서 실행합니다. 설치 없음, 누락 노드 없음, 빨간 박스 없음. 휴대폰이나 노트북에서 열고 1분 안에 생성하세요.

Load Image (as Mask) 사용법

  1. Export a black-and-white mask at the exact size of the picture you will inpaint.
  2. Add Load Image (as Mask), upload it and set channel to red.
  3. Optionally add Grow Mask (6-16 px) and Feather Mask for a soft edge.
  4. Connect MASK to Set Latent Noise Mask or VAE Encode (for Inpainting).
  5. Check the mask with a Convert Mask to Image -> Preview Image pair if the result looks wrong.

설정과 팁

  • For alpha masks remember that transparent means masked (1), the opposite of a white-on-black file.
  • Masks are resized to the latent automatically by the inpainting nodes, but a mismatched aspect ratio is stretched.
  • Grey values make partial masks; a 50% grey pixel is half-strength denoise.
  • Invert Mask flips the selection without re-exporting the file.

Load Image (as Mask) 문제 해결

The mask selects the wrong area (inverted)

원인
White and black were swapped in the file, or alpha was chosen for an opaque image.

해결 방법
Add Invert Mask, or switch channel to red for a black-and-white file.

Mask is all zeros

원인
The chosen channel is uniform: for example alpha on a JPEG, which has no transparency.

해결 방법
Use the red channel for black-and-white files, or re-export the mask with real transparency.

Hard, visible seam at the edge of the inpainted region

원인
A binary mask with no soft edge and a high denoise value.

해결 방법
Add Grow Mask then Feather Mask (8-24 px) before the inpainting node, and lower denoise slightly.

AD
이 워크플로를 휴대폰에서 실행하세요
이 페이지의 모든 워크플로는 모델과 커스텀 노드까지 갖춘 채 BitVector에 미리 설치되어 있습니다. 하나 고르고 프롬프트를 입력하면 끝. 설정 제로, 다운로드 없음.

Load Image (as Mask)에 관한 질문

Can I paint the mask instead of loading a file?

Yes: use Load Image and its Mask Editor. Load Image (as Mask) is for masks that already exist as files.

Does the mask need the same size as the picture?

It should. Nodes resize it to fit, but different aspect ratios distort the selection.

관련 노드

Load Image
ComfyUI core
Load Image reads a picture from the ComfyUI input folder (or an upload) and outputs an IMAGE tensor plus a MASK taken from the alpha channel, the starting point for img2img, inpainting, ControlNet and IP-Adapter graphs.
Grow Mask, Feather Mask and Invert Mask
ComfyUI core
The core mask tools expand (Grow Mask), soften (Feather Mask) and flip (Invert Mask) a MASK so inpainted regions blend into the surrounding picture without visible seams.
Set Latent Noise Mask
ComfyUI core
Set Latent Noise Mask attaches a MASK to a LATENT so the sampler only changes the white area: inpainting and regional regeneration with any normal checkpoint.
VAE Encode and VAE Encode (for Inpainting)
ComfyUI core
VAE Encode converts a pixel IMAGE into a LATENT for img2img; VAE Encode (for Inpainting) does the same while blanking the masked area so an inpainting model can repaint it.
AD
노드 고치기에 지치셨나요? 클라우드에 맡기세요
BitVector는 수백 개의 ComfyUI 워크플로를 빠른 클라우드 GPU에 설치하고 업데이트하고 테스트해 둡니다. Python도, CUDA 오류도, VRAM 한계도 없습니다. 어떤 브라우저에서든 됩니다.

더 많은 ComfyUI 노드

CLIP Text Encode (Prompt)
ComfyUI core
CLIP Text Encode turns a text prompt into CONDITIONING using the model text encoder. One node holds the positive prompt, a second one the negative prompt.
ComfyUI Manager
ComfyUI-Manager
ComfyUI Manager is the extension that installs, updates and fixes custom node packs and models from inside the interface, resolves missing nodes in imported workflows and snapshots your setup.
KSampler
ComfyUI core
KSampler runs the denoising loop: it takes the model, prompts and a latent and produces the finished latent image, controlled by seed, steps, cfg, sampler, scheduler and denoise.
Load Checkpoint
ComfyUI core
Load Checkpoint (CheckpointLoaderSimple) opens a .safetensors or .ckpt model file and hands out the three parts every workflow needs: the diffusion MODEL, the CLIP text encoder and the VAE.
Save Image
ComfyUI core
Save Image writes the IMAGE tensor to ComfyUI/output as a PNG, with the whole workflow embedded in the file metadata so the picture can be dragged back into ComfyUI to restore the graph.
VAE Decode
ComfyUI core
VAE Decode converts the sampled LATENT into a pixel IMAGE with the VAE; VAE Decode (Tiled) does the same in tiles for very large images.