Qwen Image Edit 2509
다중 이미지 지원, 향상된 일관성 및 ControlNet 통합을 갖춘 고급 이미지 편집.
워크플로 내부
소스 템플릿의 읽기 전용 미리보기입니다. 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({
"60": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"433:8",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"78": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"435": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Bring this street corner to life at blue hour without changing the architecture. Switch on warm tungsten light behind about half of the windows on every floor, unevenly, as if people are home. On the ground floor, add a small café: a dark green canvas awning over the two arched windows nearest the corner, three round marble bistro tables with wicker chairs on the pavement, and a soft glow spilling out from inside. Add two wrought-iron street lamps at the corner and light them. Make the puddle reflect all of these new lights accurately, with gentle ripples. Keep the facade, the stonework, the cobblestones, the sky and the camera angle exactly as they are. No people, no signs, no text."
},
"_meta": {
"title": "Prompt"
}
},
"433:110": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"433:38",
0
],
"image1": [
"433:117",
0
],
"prompt": "",
"vae": [
"433:39",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"433:111": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"433:38",
0
],
"image1": [
"433:117",
0
],
"prompt": [
"435",
0
],
"vae": [
"433:39",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"433:117": {
"class_type": "FluxKontextImageScale",
"inputs": {
"image": [
"78",
0
]
},
"_meta": {
"title": "FluxKontextImageScale"
}
},
"433:3": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"433:88",
0
],
"model": [
"433:75",
0
],
"negative": [
"433:110",
0
],
"positive": [
"433:111",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 0,
"steps": 4
},
"_meta": {
"title": "KSampler"
}
},
"433:37": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "qwen_image_edit_2509_fp8_e4m3fn.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"433:38": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
"device": "default",
"type": "qwen_image"
},
"_meta": {
"title": "Load CLIP"
}
},
"433:39": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "qwen_image_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"433:66": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"433:89",
0
],
"sampling": "flow",
"shift": 3
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"433:75": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"433:66",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
},
"433:8": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"433:3",
0
],
"vae": [
"433:39",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"433:88": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"433:117",
0
],
"vae": [
"433:39",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"433:89": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",
"model": [
"433:37",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
}
})
workflow.set_input("78", "image", client.assets.from_url("https://comfy.org/catalog-media/0f1f46e0-d02b-456b-ae66-06bf63073046/817953d3-5ba6-45ae-9d14-3ba026231125"))
# 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("60"):
output.to_file(output.name)예시 사용해 보기
이 워크플로 정보
'Qwen Image Edit 2509' 워크플로는 고급 이미지 편집 작업을 위해 설계되었으며, 멀티 이미지 지원과 ControlNet 통합을 통한 향상된 일관성을 제공합니다. 이 워크플로는 강력한 이미지 처리 기능으로 알려진 Qwen-Image 모델을 활용합니다. SaveImage, LoadImage, 그리고 ControlNet 전용 노드 같은 노드를 사용해 정밀한 이미지 수정이 가능합니다. 여러 이미지에서 일관성을 유지하는 기능은 균일성이 중요한 배치 처리 작업에서 특히 유용합니다. 또한 ControlNet 통합으로 더 통제된 세밀한 편집이 가능해, 원하는 변경 사항이 모든 이미지에 정확히 적용되도록 돕습니다.
질문과 답변
ControlNet는 편집 과정에 대한 제어를 강화해, 여러 이미지에 걸쳐 정밀하고 일관된 수정이 가능하도록 합니다.
예. Qwen-Image 모델은 고해상도 이미지 처리에 최적화되어 있어, 디테일한 편집 작업에 적합합니다.
예. 이 워크플로는 멀티 이미지 편집을 지원하므로, 한 번의 배치에서 다양한 이미지 유형에 일관된 편집을 적용할 수 있습니다.
ControlNet 노드에서 원하는 파라미터를 설정하면 워크플로 전반에서 모든 이미지에 적용되는 편집의 일관성을 유지할 수 있습니다.