캐릭터 + 의상 가상 피팅 스튜디오 촬영
캐릭터 이미지를 업로드하고 의상 평면 이미지를 추가하세요. 캐릭터가 의상을 입은 패션 에디토리얼 사진 4장을 생성합니다. 원하는 이미지를 선택해 업스케일 및 디테일 복원까지 진행하세요.
정보
이 워크플로는 캐릭터용 빠른 레퍼런스 기반 가상 피팅(virtual try‑on) 파이프라인을 구성합니다. LoadImage로 두 장의 이미지를 제공합니다. (1) 얼굴과 전신 프레이밍이 명확한 캐릭터 이미지, (2) 의류가 펼쳐진 플랫레이 이미지입니다. PrimitiveStringMultiline에 입력한 프롬프트로 포즈, 스튜디오 조명, 배경, 스타일링 단서를 설명합니다. 이후 OpenAIGPTImageNodeV2가 4개의 패션 에디토리얼 변형을 배치로 생성하고, 빠른 검토를 위해 2×2 컨택트 시트로 배치합니다. PreviewImage에서 그리드를 확인하고, ImageCompare로 차이를 나란히 비교할 수 있습니다.
내부적으로 동일한 레퍼런스(캐릭터 및 의류)가 초기 배치와 업스케일 경로 모두에 사용되어 얼굴 아이덴티티와 의상 디테일을 유지합니다. 이 그래프의 유틸리티 노드(663da6e9-8b62-4291-a9d6-e4b8fd672197)는 2×2 그리드 출력을 처리하고 이를 다시 4개의 1K(약 1024×1024) 타일로 크롭하도록 연결되어 있습니다. ImageFromBatch에서 batch_index(0–3, 좌상단부터 시작)를 설정해 타일 하나를 선택하고, 이를 Upscale Selected Image 그룹으로 전달합니다. 업스케일 단계에서는 OpenAIGPTImageNodeV2를 다시 사용해 2048×2048로 생성하되, 일관성을 위해 원본 레퍼런스를 재사용합니다. 이후 SaveImage로 결과를 저장합니다. 캔버스의 MarkdownNote 및 Note 노드는 인라인 리마인더와 팁을 제공합니다.
제공할 항목
- 워크플로 읽는 중
ComfyUI에서 실행됩니다. 이 워크플로는 이 페이지에서 실행할 수 없습니다. 모든 항목이 로드된 Comfy Cloud에서 열거나, 자체 ComfyUI에서 사용하려면 다운로드하세요.
Cloud에서 사용해 보기예시 사용해 보기
워크플로 내부
노드 그래프의 읽기 전용 미리보기입니다. 노드를 편집하려면 Comfy Cloud에서 열거나 다운로드하세요.
Loading the graph
Open full-size workflow preview- 작성자
- Rob
사용자 지정 노드 필요
- 워크플로 읽는 중
코드에서 이 워크플로 사용하기
가능한 경우 워크플로 그래프와 입력을 기반으로 생성되며, 그렇지 않은 경우 저장된 예시가 표시됩니다. 비용이 발생할 수 있으므로 코드를 실행하기 전에 자격 증명과 엔드포인트를 검토하세요.
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({
"1": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Subject Image"
}
},
"5": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "A 2x2 (2 rows, 2 cols) grid of high fashion photoshoot images of the model wearing the outfit from image 2, each grid image should show the a full body shot of the subject in slightly different poses. Ensure that all outfit clothes/accessories are present in each grid image.\n\nThe background setting is a studio environment with a white studio background. Ensure that each grid image has the same lighting conditions. \n\nDO NOT generate the grid with any visible borders or gutters.\n\nThe image is shot on fuji velvia film on a 55mm prime lens, the light is concentrated on the subject."
},
"_meta": {
"title": "Prompt"
}
},
"8": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-image_stitched",
"images": [
"149",
0
]
},
"_meta": {
"title": "Save Stitched Image"
}
},
"12": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-image_1",
"images": [
"146:57",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"13": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-image_2",
"images": [
"146:143",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"14": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-image_3",
"images": [
"146:140",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"15": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-image_4",
"images": [
"146:144",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"23": {
"class_type": "ImageFromBatch",
"inputs": {
"batch_index": 0,
"image": [
"146:137",
0
],
"length": 1
},
"_meta": {
"title": "Select Image to Upscale"
}
},
"26": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-image_upscaled",
"images": [
"150",
0
]
},
"_meta": {
"title": "Save Upscaled Image"
}
},
"27": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"23",
0
]
},
"_meta": {
"title": "Preview Selected Image"
}
},
"35": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_2_FILENAME"
},
"_meta": {
"title": "Load Outfit Image"
}
},
"149": {
"class_type": "OpenAIGPTImageNodeV2",
"inputs": {
"model": "gpt-image-2",
"model.background": "auto",
"model.custom_height": 1024,
"model.custom_width": 1024,
"model.images.image_1": [
"1",
0
],
"model.images.image_2": [
"35",
0
],
"model.quality": "low",
"model.size": "2048x2048",
"n": 1,
"prompt": [
"5",
0
],
"seed": 111
},
"_meta": {
"title": "OpenAI GPT Image 2.5"
}
},
"150": {
"class_type": "OpenAIGPTImageNodeV2",
"inputs": {
"model": "gpt-image-2",
"model.background": "auto",
"model.custom_height": 1024,
"model.custom_width": 1024,
"model.images.image_1": [
"23",
0
],
"model.images.image_2": [
"1",
0
],
"model.images.image_3": [
"35",
0
],
"model.quality": "high",
"model.size": "2048x2048",
"n": 1,
"prompt": "Generate a high resolution image. Upscale image 1 while maintaining pose, background and composition, add subtle details. Use the face from image 2 to add back facial consistency and ensure the outfit details match the clothes and accessories from image 3.",
"seed": 222
},
"_meta": {
"title": "OpenAI GPT Image 2.5"
}
},
"154": {
"class_type": "ImageCompare",
"inputs": {
"compare_view": None,
"image_a": [
"23",
0
],
"image_b": [
"150",
0
]
},
"_meta": {
"title": "Compare Before/After Upscale Images"
}
},
"146:137": {
"class_type": "BatchImagesNode",
"inputs": {
"images.image0": [
"146:57",
0
],
"images.image1": [
"146:143",
0
],
"images.image2": [
"146:140",
0
],
"images.image3": [
"146:144",
0
]
},
"_meta": {
"title": "Batch Images"
}
},
"146:138": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "max(1, a - b)",
"values.a": [
"146:55",
0
],
"values.b": [
"146:54",
1
]
},
"_meta": {
"title": "Math Expression (Right Width)"
}
},
"146:139": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "max(1, a - b)",
"values.a": [
"146:55",
1
],
"values.b": [
"146:59",
1
]
},
"_meta": {
"title": "Math Expression (Bottom Height)"
}
},
"146:140": {
"class_type": "ImageCropV2",
"inputs": {
"crop_region": [
"146:141",
0
],
"image": [
"149",
0
]
},
"_meta": {
"title": "Crop Image"
}
},
"146:141": {
"class_type": "PrimitiveBoundingBox",
"inputs": {
"height": [
"146:139",
1
],
"width": [
"146:54",
1
],
"x": 0,
"y": [
"146:59",
1
]
},
"_meta": {
"title": "Bounding Box"
}
},
"146:142": {
"class_type": "PrimitiveBoundingBox",
"inputs": {
"height": [
"146:59",
1
],
"width": [
"146:138",
1
],
"x": [
"146:54",
1
],
"y": 0
},
"_meta": {
"title": "Bounding Box"
}
},
"146:143": {
"class_type": "ImageCropV2",
"inputs": {
"crop_region": [
"146:142",
0
],
"image": [
"149",
0
]
},
"_meta": {
"title": "Crop Image"
}
},
"146:144": {
"class_type": "ImageCropV2",
"inputs": {
"crop_region": [
"146:145",
0
],
"image": [
"149",
0
]
},
"_meta": {
"title": "Crop Image"
}
},
"146:145": {
"class_type": "PrimitiveBoundingBox",
"inputs": {
"height": [
"146:139",
1
],
"width": [
"146:138",
1
],
"x": [
"146:54",
1
],
"y": [
"146:59",
1
]
},
"_meta": {
"title": "Bounding Box"
}
},
"146:54": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "max(1, int(a/b))",
"values.a": [
"146:55",
0
],
"values.b": [
"146:56",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"146:55": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"149",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"146:56": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 2
},
"_meta": {
"title": "Int"
}
},
"146:57": {
"class_type": "ImageCropV2",
"inputs": {
"crop_region": [
"146:58",
0
],
"image": [
"149",
0
]
},
"_meta": {
"title": "Crop Image"
}
},
"146:58": {
"class_type": "PrimitiveBoundingBox",
"inputs": {
"height": [
"146:59",
1
],
"width": [
"146:54",
1
],
"x": 0,
"y": 0
},
"_meta": {
"title": "Bounding Box"
}
},
"146:59": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "max(1, int(a/b))",
"values.a": [
"146:55",
1
],
"values.b": [
"146:56",
0
]
},
"_meta": {
"title": "Math Expression"
}
}
})
# Replace each example.com URL with a public URL of your file.
workflow.set_input("1", "image", client.assets.from_url("https://example.com/replace-with-a-url/image"))
workflow.set_input("35", "image", client.assets.from_url("https://example.com/replace-with-a-url/image_2"))
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)질문과 답변
두 단계 모두 OpenAIGPTImageNodeV2에서 동일한 캐릭터와 의상 평면 이미지를 참조로 사용합니다. 업스케일 단계에서도 참조 이미지를 재사용해, 신원과 의상 디테일이 새로 생성되지 않고 강화됩니다.
캐릭터: 얼굴이 잘 보이고 배경이 단순한, 밝고 선명한 이미지를 추천합니다. 의상: 평면에 펼쳐진 상태로, 전체 앞면이 보이고 접히거나 가려진 부분이 없으며, 배경이 복잡하지 않은 이미지를 사용하세요.
ImageFromBatch 노드에서 batch_index를 원하는 타일 번호(0=좌상단, 1=우상단, 2=좌하단, 3=우하단)로 설정하세요. 인덱스는 0부터 시작합니다.
네. PrimitiveStringMultiline 프롬프트에서 포즈 방향(예: 3/4, 걷는 자세), 초점 거리/프레이밍(전신, 반신), 조명(소프트박스, 림라이트), 배경(무지, 컬러지 등)을 수정하세요. 2×2 Grid Generation 그룹을 다시 실행해 새로운 변형을 미리 볼 수 있습니다.