의상 교체
이 앱으로 어떤 사진이든 의상을 바꿔보세요! 스타일을 즉시 전환하고, 새로운 룩을 탐색하거나, 매장용 마케팅 이미지도 손쉽게 만들 수 있습니다. 캐릭터와 참조 의상 이미지만 업로드하면 끝입니다.
워크플로 내부
소스 템플릿의 읽기 전용 미리보기입니다. Cloud에서 열어 노드를 살펴보고 변경할 수 있습니다.
코드에서 이 모델 호출하기
아래 요청은 Playground와 동일하게 준비된 그래프와 설정을 사용합니다. 제출할 때마다 유료 실행이 시작될 수 있으므로 결과를 알 수 없는 제출을 자동으로 재시도하지 마세요.
What you need
- Runs on
- Comfy Cloud
- 키
- COMFY_API_KEY
- 내 파일
- 코드가 해당 URL에서 업로드
유료 Cloud 요금제와 크레딧이 필요합니다.
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"266": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_person_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"267": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_outfit_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"294": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "Qwen_Edit_2511",
"images": [
"293:289",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"293:269": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"293:322",
0
],
"sampling": "flow",
"shift": 3.1
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"293:270": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "qwen_image_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"293:274": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"293:281",
0
],
"image1": [
"293:290",
0
],
"image2": [
"293:292",
0
],
"prompt": [
"293:337",
0
],
"vae": [
"293:270",
0
]
},
"_meta": {
"title": "TextEncodeQwenImageEditPlus (Positive)"
}
},
"293:275": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"293:269",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
},
"293:276": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
"model": [
"293:275",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"293:277": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 4
},
"_meta": {
"title": "CFG"
}
},
"293:278": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 1
},
"_meta": {
"title": "CFG"
}
},
"293:279": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"293:290",
0
],
"vae": [
"293:270",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"293:280": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "qwen_image_edit_2511_bf16.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"293:281": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
"device": "default",
"type": "qwen_image"
},
"_meta": {
"title": "Load CLIP"
}
},
"293:282": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"293:275",
0
],
"on_true": [
"293:276",
0
],
"switch": [
"293:285",
0
]
},
"_meta": {
"title": "Switch (Model)"
}
},
"293:283": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 6
},
"_meta": {
"title": "Steps"
}
},
"293:284": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 30
},
"_meta": {
"title": "Steps"
}
},
"293:285": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": True
},
"_meta": {
"title": "Enable 4steps LoRA?"
}
},
"293:286": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"293:277",
0
],
"on_true": [
"293:278",
0
],
"switch": [
"293:285",
0
]
},
"_meta": {
"title": "Switch (CFG)"
}
},
"293:287": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"293:284",
0
],
"on_true": [
"293:283",
0
],
"switch": [
"293:285",
0
]
},
"_meta": {
"title": "Switch (Steps)"
}
},
"293:288": {
"class_type": "KSampler",
"inputs": {
"cfg": [
"293:286",
0
],
"denoise": 1,
"latent_image": [
"293:279",
0
],
"model": [
"293:282",
0
],
"negative": [
"293:291",
0
],
"positive": [
"293:274",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 525225493084341,
"steps": [
"293:287",
0
]
},
"_meta": {
"title": "KSampler"
}
},
"293:289": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"293:288",
0
],
"vae": [
"293:270",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"293:290": {
"class_type": "FluxKontextImageScale",
"inputs": {
"image": [
"266",
0
]
},
"_meta": {
"title": "FluxKontextImageScale"
}
},
"293:291": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"293:281",
0
],
"image1": [
"293:290",
0
],
"image2": [
"293:292",
0
],
"prompt": "",
"vae": [
"293:270",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"293:292": {
"class_type": "FluxKontextImageScale",
"inputs": {
"image": [
"267",
0
]
},
"_meta": {
"title": "FluxKontextImageScale"
}
},
"293:322": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "Qwen-Image-Edit-2509-clothes_try_on_clothing_transfer_edit.safetensors",
"model": [
"293:280",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"293:330": {
"class_type": "TextGenerateLTX2Prompt",
"inputs": {
"clip": [
"293:332",
0
],
"image": [
"267",
0
],
"max_length": 256,
"mtp": "auto",
"prompt": "You are a garment tagger for a virtual try-on pipeline. The user message contains one image of an outfit (flat lay or product grid).\n\nOutput a single lowercase phrase enumerating every wearable item in the image, and nothing else — no preamble, no labels, no quotes, no trailing period, no line breaks.\n\nRules:\n- Describe each item as: [color/wash] [material or texture, if visually distinctive] [fit/cut, if notable] [garment type], e.g. \"washed brown oversized hoodie\", \"tan suede crossbody bag\".\n- Order: main top, bottoms, then accessories (headwear, belt, bag), footwear last.\n- Separate items with commas, with \"and\" before the last item.\n- For bags, append how they are worn if inferable, e.g. \"worn across the chest\".\n- Include only items visible in the image; never invent items, brands, or logos.\n- Mention a brand or printed text only if clearly legible on the garment.\n- If the image contains no clothing, output exactly: no garments detected",
"sampling_mode": "on",
"sampling_mode.min_p": 0.05,
"sampling_mode.presence_penalty": 0,
"sampling_mode.repetition_penalty": 1.05,
"sampling_mode.seed": 123456789,
"sampling_mode.temperature": 0.7,
"sampling_mode.top_k": 64,
"sampling_mode.top_p": 0.95,
"thinking": False,
"use_default_template": True
},
"_meta": {
"title": "Generate Prompt"
}
},
"293:331": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"293:330",
0
]
},
"_meta": {
"title": "Preview as Text"
}
},
"293:332": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen3.5_4b_bf16.safetensors",
"device": "default",
"type": "stable_diffusion"
},
"_meta": {
"title": "CLIP Loader"
}
},
"293:335": {
"class_type": "StringConcatenate",
"inputs": {
"delimiter": " ",
"string_a": "Put the clothes on the left onto the person on the right.\nDress the subject from the first image in the outfit from the second image:",
"string_b": [
"293:331",
0
]
},
"_meta": {
"title": "Concatenate Text"
}
},
"293:336": {
"class_type": "StringConcatenate",
"inputs": {
"delimiter": " ",
"string_a": [
"293:335",
0
],
"string_b": "Keep his face, hair, body proportions, pose, and the background exactly the same. The garments must match the clothing exactly in color, fabric texture, and details. Photorealistic fashion photo."
},
"_meta": {
"title": "Concatenate Text"
}
},
"293:337": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"293:336",
0
]
},
"_meta": {
"title": "Preview as Text"
}
}
})
workflow.set_input("267", "image", client.assets.from_url("https://comfy.org/catalog-media/6f8721d3-d594-43c6-9c0f-5dcfa3a9f2a7/bfbc898f-6812-45d2-95fb-5c9696404fb7"))
workflow.set_input("266", "image", client.assets.from_url("https://comfy.org/catalog-media/02c308b6-ea0c-4040-b14a-0819feb9a6a3/5507a16d-9ddd-48cb-8ea9-25e7c3f5082b"))
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)
for output in job.get_outputs("294"):
output.to_file(output.name)예시 사용해 보기
이 워크플로 정보
Clothes Changer는 캐릭터 사진의 의상을 레퍼런스 의상 이미지로 교체하는 가상 피팅 워크플로입니다. 두 개의 LoadImage 노드(하나는 캐릭터용, 하나는 의상용)를 커스텀 Clothes Changer 노드(a41effc1-fe4c-4b79-a70d-9b7388ef6a23)에 연결한 다음, SaveImage 노드로 결과를 저장합니다. 이 워크플로는 간단하고 직관적입니다: LoadImage → Clothes Changer (a41effc1-...) → SaveImage로, 한 번의 패스에서 입력부터 출력 렌더까지 진행할 수 있습니다.
기술적으로 Clothes Changer 노드는 인물/캐릭터 이미지와 의상 레퍼런스를 받아, 피사체 포즈에 맞게 의상을 정렬하고 얼굴 특징, 머리카락, 신체 구조를 보존하면서 합성합니다. 이러한 유형의 노드 내부에는 일반적으로 의상 영역 감지, 포즈 인지 정렬/워핑, 경계 주변 아티팩트를 줄이기 위한 클린 블렌딩 단계가 포함됩니다. 모든 과정이 ComfyUI 안에서 실행되므로, 입력을 바꾸고(빌드에서 노출된 경우) 노드 설정을 조정한 뒤 다시 실행 대기열에 넣어 핏, 커버리지, 출력 크기를 빠르게 다듬을 수 있습니다.
질문과 답변
짧은 변 기준 768–1536 px 범위의 선명하고 조명이 좋은 이미지를 사용하세요. 정렬과 아티팩트 감소를 위해 캐릭터 및 의상 이미지의 크기를 비슷하게 유지하는 것이 좋습니다.
Clothes Changer 노드는 아이덴티티(얼굴, 머리카락, 신체 구조)를 보존하고 의상만 교체하도록 설계되었습니다. 경계 주변에 약간의 블렌딩이 생길 수 있으며, 더 좋은 프레이밍과 고해상도 입력이 도움이 됩니다.
가능하지만, 의상이 배경과 잘 분리되어 있을수록 결과가 더 깔끔합니다. 평면(플랫레이) 이미지나 대비가 뚜렷한 착용 샷이 더 좋습니다. 정면 의상은 일반적으로 더 안정적으로 정렬됩니다.
SaveImage 노드는 파일을 ComfyUI/output 폴더에 저장합니다. SaveImage 노드에서 파일 이름 접두어를 설정해 버전을 정리하세요.
관련 워크플로
- Nano Banana Pro, Gemini3 Pro Image Preview, Google
Create a character turnaround
- Qwen-Image-Edit
Change a material
- Qwen-Image-Edit
See your subject from a new angle
- Flux.2 Dev, Flux
Create a product mockup
- Nano Banana Pro
Try an outfit on a character
- Seedream
Put your product in a new scene
- SSeedVR2
Upscale and restore detail
- Nano Banana Pro
Sharpen a product photo
- Topaz
Upscale an illustration
- HHitPaw
Restore portrait detail
- FLUX.1 Fill
Edit a selected region
- FLUX.1 Fill
Extend an image’s borders