Qwen-Image 2512: 펀 유니온 컨트롤넷
이미지를 업로드하고 Canny, HED, Depth, Pose, MLSD, Scribble 또는 Grayscale 중에서 제어 유형을 선택하세요. 선택한 구조적 조건에 따라 새 이미지를 생성합니다.
워크플로 내부
소스 템플릿의 읽기 전용 미리보기입니다. 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": "Qwen-Image-2512",
"images": [
"86:8",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"121": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"122": {
"class_type": "Canny",
"inputs": {
"high_threshold": 0.35,
"image": [
"123",
0
],
"low_threshold": 0.33
},
"_meta": {
"title": "Detect Edges (Canny)"
}
},
"123": {
"class_type": "ResizeImageMaskNode",
"inputs": {
"input": [
"121",
0
],
"resize_type": "scale total pixels",
"resize_type.megapixels": 1.6,
"scale_method": "area"
},
"_meta": {
"title": "Resize Image/Mask"
}
},
"125": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"123",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"126": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"122",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"86:111": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "Qwen-Image-Lightning-4steps-V1.0.safetensors",
"model": [
"86:37",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"86:112": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"86:37",
0
],
"on_true": [
"86:111",
0
],
"switch": [
"86:118",
0
]
},
"_meta": {
"title": "If/Else Switch"
}
},
"86:113": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 50
},
"_meta": {
"title": "Steps"
}
},
"86:115": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 4
},
"_meta": {
"title": "CFG"
}
},
"86:116": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 4
},
"_meta": {
"title": "Steps"
}
},
"86:117": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 1
},
"_meta": {
"title": "CFG"
}
},
"86:118": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": False
},
"_meta": {
"title": "Enable 4 Steps LoRA?"
}
},
"86:119": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"86:113",
0
],
"on_true": [
"86:116",
0
],
"switch": [
"86:118",
0
]
},
"_meta": {
"title": "If/Else Switch"
}
},
"86:120": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"86:115",
0
],
"on_true": [
"86:117",
0
],
"switch": [
"86:118",
0
]
},
"_meta": {
"title": "If/Else Switch"
}
},
"86:121": {
"class_type": "ControlNetApplyAdvanced",
"inputs": {
"control_net": [
"86:122",
0
],
"end_percent": 1,
"image": [
"122",
0
],
"negative": [
"86:7",
0
],
"positive": [
"86:81",
0
],
"start_percent": 0,
"strength": 1,
"vae": [
"86:39",
0
]
},
"_meta": {
"title": "Apply ControlNet"
}
},
"86:122": {
"class_type": "ControlNetLoader",
"inputs": {
"control_net_name": "Qwen-Image-2512-Fun-Controlnet-Union-2602.safetensors"
},
"_meta": {
"title": "Load ControlNet Model"
}
},
"86:3": {
"class_type": "KSampler",
"inputs": {
"cfg": [
"86:120",
0
],
"denoise": 1,
"latent_image": [
"86:58",
0
],
"model": [
"86:66",
0
],
"negative": [
"86:121",
1
],
"positive": [
"86:121",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 985578626029454,
"steps": [
"86:119",
0
]
},
"_meta": {
"title": "KSampler"
}
},
"86:37": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "qwen_image_2512_fp8_e4m3fn.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"86:38": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
"device": "default",
"type": "qwen_image"
},
"_meta": {
"title": "Load CLIP"
}
},
"86:39": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "qwen_image_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"86:58": {
"class_type": "EmptySD3LatentImage",
"inputs": {
"batch_size": 1,
"height": [
"125",
1
],
"width": [
"125",
0
]
},
"_meta": {
"title": "EmptySD3LatentImage"
}
},
"86:66": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"86:112",
0
],
"sampling": "flow",
"shift": 3.1000000000000005
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"86:7": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"86:38",
0
],
"text": "低分辨率,低画质,肢体畸形,手指畸形,画面过饱和,蜡像感,人脸无细节,过度光滑,画面具有AI感。构图混乱。文字模糊,扭曲"
},
"_meta": {
"title": "CLIP Text Encode (Negative Prompt)"
}
},
"86:8": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"86:3",
0
],
"vae": [
"86:39",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"86:81": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"86:38",
0
],
"text": "A vast underwater cathedral grown from living coral, its arches formed by the curved white ribs of an ancient whale skeleton encrusted with pink and violet coral, sea fans and barnacles. The arches recede in a long perspective tunnel toward a bright opening where sunlight floods down through blue water in shimmering god rays. The floor is pale rippled sand dotted with clusters of anemones, starfish and small sea urchins, with a giant open clam shell resting near the centre catching the light. Schools of tiny silver fish drift between the ribs, and soft caustic light patterns dance across every surface. Photorealistic underwater photography, deep turquoise and teal water, warm coral pinks and sandy golds, crisp detail, calm and dreamlike atmosphere, no divers or people."
},
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
}
})
workflow.set_input("121", "image", client.assets.from_url("https://comfy.org/catalog-media/6116c337-3883-4a70-a93d-5d1dc06c0ec4/1d4b583e-cc57-4e12-a00d-bc9598e92091"))
# 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 2512: Fun Union ControlNet 워크플로는 Canny, HED, Depth, Pose, MLSD, Scribble 또는 Grayscale 같은 다양한 컨트롤 유형 기반의 구조적 가이드를 적용하여 이미지를 변환하도록 설계되었습니다. 이 워크플로는 Qwen-Image 2512 모델을 활용해 입력 이미지의 구조적 일관성을 유지하면서도 창의적인 변형이 가능하도록 새로운 이미지를 생성합니다. 프로세스는 이미지를 업로드하고 컨트롤 유형을 선택하는 것으로 시작하며, 이 선택이 새로운 이미지가 생성되는 구조 조건을 결정합니다.
기술적으로 이 워크플로는 입력 이미지를 전처리하고 선택한 컨트롤 유형을 적용하기 위해 여러 노드를 사용합니다. 예를 들어 Canny 노드는 엣지 감지에 사용되고, Depth 노드는 이미지의 공간 구조를 이해하는 데 도움을 줍니다. ResizeImageMaskNode와 GetImageSize 노드는 처리에 최적화되도록 이미지 크기를 보정합니다. PreviewImage 노드로 결과를 확인한 뒤 SaveImage 노드로 최종 저장할 수 있습니다. 이 워크플로는 중요한 구조 요소를 유지하면서 다양한 스타일 해석을 탐색하려는 아티스트와 디자이너에게 특히 유용합니다.
질문과 답변
인물 사진이나 건축 사진처럼 구조 요소가 뚜렷한 이미지가 가장 적합하며, Canny와 Depth 같은 컨트롤 유형의 효과를 잘 활용할 수 있습니다.
현재 워크플로는 한 번에 하나의 컨트롤 유형을 선택해 이미지 생성 프로세스를 가이드하도록 지원합니다.
특정 컨트롤 유형이 최적으로 동작하려면 comfyui_controlnet_aux 플러그인이 필요할 수 있습니다.
입력 이미지를 고해상도로 준비하고, 강조하려는 구조 특징에 맞는 적절한 컨트롤 유형을 선택하세요.
관련 워크플로
- Qwen-Image 2512
Qwen-Image 2512 Turbo
- 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