Qwen Image Edit 2511 - 소재 교체
참조 이미지를 조합하여 Qwen-Image-Edit-2511로 객체(예: 가구)의 재질을 교체합니다.
워크플로 내부
소스 템플릿의 읽기 전용 미리보기입니다. 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({
"9": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "Qwen_Edit_2511",
"images": [
"170:158",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"41": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"83": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_material_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"170:145": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"170:161",
0
],
"sampling": "flow",
"shift": 3.1
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"170:146": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "qwen_image_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"170:147": {
"class_type": "FluxKontextMultiReferenceLatentMethod",
"inputs": {
"conditioning": [
"170:149",
0
],
"reference_latents_method": "index_timestep_zero"
},
"_meta": {
"title": "Edit Model Reference Method"
}
},
"170:148": {
"class_type": "FluxKontextMultiReferenceLatentMethod",
"inputs": {
"conditioning": [
"170:151",
0
],
"reference_latents_method": "index_timestep_zero"
},
"_meta": {
"title": "Edit Model Reference Method"
}
},
"170:149": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"170:162",
0
],
"image1": [
"170:160",
0
],
"image2": [
"83",
0
],
"prompt": "",
"vae": [
"170:146",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"170:151": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"170:162",
0
],
"image1": [
"170:160",
0
],
"image2": [
"83",
0
],
"prompt": "Change the upholstery of the sofa in image 1 to the woven fabric in image 2. Re-cover every cushion, the seat, the back and both arms in that emerald, sage and silver-gilt botanical silk, with its raised damask scrolls and ribbed weave following the curves of the cushions and wrapping neatly around the seams and the welt trim. Keep the pattern at a believable furniture scale, repeating across the seat and back rather than enlarged. Let the silk catch the amber pendant light with a soft metallic sheen on the raised motifs and deeper shadow in the folds. Keep everything else exactly as it is: the sofa's shape and black steel legs, the rain-streaked steel windows, the concrete floor, the basalt side table with the glass carafe, the brick wall and the stormy night light.",
"vae": [
"170:146",
0
]
},
"_meta": {
"title": "TextEncodeQwenImageEditPlus (Positive)"
}
},
"170:152": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"170:145",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
},
"170:153": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
"model": [
"170:152",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"170:154": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 4
},
"_meta": {
"title": "CFG"
}
},
"170:155": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 1
},
"_meta": {
"title": "CFG"
}
},
"170:156": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"170:160",
0
],
"vae": [
"170:146",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"170:158": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"170:169",
0
],
"vae": [
"170:146",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"170:160": {
"class_type": "FluxKontextImageScale",
"inputs": {
"image": [
"41",
0
]
},
"_meta": {
"title": "FluxKontextImageScale"
}
},
"170:161": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "qwen_image_edit_2511_bf16.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"170:162": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
"device": "default",
"type": "qwen_image"
},
"_meta": {
"title": "Load CLIP"
}
},
"170:163": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"170:152",
0
],
"on_true": [
"170:153",
0
],
"switch": [
"170:168",
0
]
},
"_meta": {
"title": "Switch (Model)"
}
},
"170:164": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"170:154",
0
],
"on_true": [
"170:155",
0
],
"switch": [
"170:168",
0
]
},
"_meta": {
"title": "Switch (CFG)"
}
},
"170:165": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 4
},
"_meta": {
"title": "Steps"
}
},
"170:166": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 40
},
"_meta": {
"title": "Steps"
}
},
"170:167": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"170:166",
0
],
"on_true": [
"170:165",
0
],
"switch": [
"170:168",
0
]
},
"_meta": {
"title": "Switch (Steps)"
}
},
"170:168": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": False
},
"_meta": {
"title": "Enable 4steps LoRA?"
}
},
"170:169": {
"class_type": "KSampler",
"inputs": {
"cfg": [
"170:164",
0
],
"denoise": 1,
"latent_image": [
"170:156",
0
],
"model": [
"170:163",
0
],
"negative": [
"170:147",
0
],
"positive": [
"170:148",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 0,
"steps": [
"170:167",
0
]
},
"_meta": {
"title": "KSampler"
}
}
})
workflow.set_input("41", "image", client.assets.from_url("https://comfy.org/catalog-media/4bb67d1b-b6ef-4ff6-9312-87120a3aa9e5/408d02ad-fe6c-4ea8-bdf4-dc374b36e1e9"))
workflow.set_input("83", "image", client.assets.from_url("https://comfy.org/catalog-media/b39ab263-ed77-4915-88c4-835f84923f6c/d75c6f16-06b9-48e4-84b2-b2eab0d3cc36"))
# 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("9"):
output.to_file(output.name)예시 사용해 보기
이 워크플로 정보
'Qwen Image Edit 2511 - Material Replacement' 워크플로는 가구 등 오브젝트의 소재를 고급 이미지 편집 기법으로 교체하도록 설계되었습니다. 이 워크플로는 소재 교체 작업에 맞게 튜닝된 Qwen-Image-Edit 모델을 활용합니다. 레퍼런스 이미지와 Qwen-Image-Edit-2511 모델을 결합해, 자연스럽고 보기 좋은 소재 변환을 얻을 수 있습니다. 워크플로는 SaveImage, LoadImage, MarkdownNote 등 일련의 노드를 사용해 이미지 입력부터 최종 출력까지 과정을 안내합니다.
기술적으로는 LoadImage 노드로 대상 이미지를 먼저 로딩합니다. 이후 레퍼런스 이미지가 원하는 소재 특성을 정의하고, 이를 가이드로 Qwen-Image-Edit 모델이 이미지 내 오브젝트의 소재 속성을 편집합니다. SaveImage 노드로 최종 편집 이미지를 저장합니다. 기존 오브젝트에 다양한 소재 옵션을 시각화해야 하는 디자이너와 콘텐츠 제작자에게 특히 유용하며, 물리적 프로토타이핑보다 비용과 시간을 줄일 수 있는 대안입니다.
질문과 답변
교체할 소재가 명확히 식별되는, 경계가 뚜렷한 오브젝트가 있는 이미지가 가장 좋습니다. 고해상도 이미지일수록 결과가 좋아집니다.
네. 레퍼런스 이미지가 원하는 결과를 정확히 표현한다면, 색상과 텍스처를 모두 변경하는 데 사용할 수 있습니다.
Qwen-Image-Edit 모델의 처리 요구를 효율적으로 감당하려면 성능이 충분한 GPU와 충분한 메모리를 갖춘 시스템을 권장합니다.
현재 워크플로는 단일 이미지 처리용으로 설계되어 있습니다. 다만 약간 수정하면 배치 처리로도 확장할 수 있습니다.
관련 워크플로
- Qwen-Image-Edit
Change a material
- Qwen-Image-Edit
See your subject from a new angle
- Qwen-Image-Edit
Match lighting from a reference
- Qwen-Image-Edit, Wan2.2
1개 이미지 입력 분할 스택 - Qwen 멀티앵글 + Wan 2.2
- Flux.2 Dev, Flux.2 Klein, GPT-Image-1.5, Grok, Nano Banana Pro, Qwen-Image-Edit, Seedream
1개 입력 및 다중 편집 모델 비교
- Qwen-Image-Edit
3D 카메라 노드로 여러 각도 생성
- Qwen-Image-Edit
INFL8 LoRA를 사용한 이미지 팽창 효과
- Qwen-Image-Edit
Qwen Image Edit 일러스트레이션 v 1.0
- Qwen-Image-Edit
Qwen 이미지 편집
- Qwen-Image-Edit
SYSTMS ACTION: QWEN IMAGE EDIT 2511
- Hunyuan3D, Qwen-Image-Edit
단일 이미지 기반 3D 모델
- Qwen-Image-Edit
리라이트 및 환경 합성