一鍵多角度場景
上傳場景圖像,一鍵產生多視角。
工作流程內部
來源範本的唯讀預覽。請在 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({
"25": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Scene Image"
}
},
"31": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-close_up",
"images": [
"65:33:19",
0
]
},
"_meta": {
"title": "Save Image - Close up"
}
},
"34": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-wide_shot",
"images": [
"65:35:19",
0
]
},
"_meta": {
"title": "Save Image - Wide shot"
}
},
"36": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-45_right",
"images": [
"65:37:19",
0
]
},
"_meta": {
"title": "Save Image - 45 right"
}
},
"38": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-90_right",
"images": [
"65:39:19",
0
]
},
"_meta": {
"title": "Save Image - 90 right"
}
},
"41": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-aerial_view",
"images": [
"65:42:19",
0
]
},
"_meta": {
"title": "Save Image - Aerial view"
}
},
"43": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-low_angle",
"images": [
"65:44:19",
0
]
},
"_meta": {
"title": "Save Image - Low angle"
}
},
"45": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-45_left",
"images": [
"65:46:19",
0
]
},
"_meta": {
"title": "Save Image - 45 left"
}
},
"47": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-90_left",
"images": [
"65:40:19",
0
]
},
"_meta": {
"title": "Save Image - 90 left"
}
},
"66": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Turn the camera to a close-up.\n"
},
"_meta": {
"title": "Prompt Close up"
}
},
"67": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Turn the camera to a wide-angle lens.\n"
},
"_meta": {
"title": "Prompt Wide angle"
}
},
"68": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Rotate the camera 90 degrees to the right.\n"
},
"_meta": {
"title": "Prompt 90deg right"
}
},
"69": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Rotate the camera 45 degrees to the right.\n"
},
"_meta": {
"title": "Prompt 45deg right"
}
},
"70": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Turn the camera to an aerial view."
},
"_meta": {
"title": "Prompt Aerial view"
}
},
"71": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Turn the camera to a low-angle view."
},
"_meta": {
"title": "Prompt Low angle"
}
},
"72": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Rotate the camera 90 degrees to the left."
},
"_meta": {
"title": "Prompt 90deg"
}
},
"73": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Rotate the camera 45 degrees to the left."
},
"_meta": {
"title": "Prompt Left 45deg"
}
},
"48:10": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
"device": "default",
"type": "qwen_image"
},
"_meta": {
"title": "Load CLIP"
}
},
"48:12": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "qwen_image_edit_2509_fp8_e4m3fn.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"48:20": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "Qwen-Edit-2509-Multiple-angles.safetensors",
"model": [
"48:26",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"48:26": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",
"model": [
"48:12",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"48:9": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "qwen_image_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"65:33:11": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"48:20",
0
],
"sampling": "flow",
"shift": 3
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"65:33:13": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"65:33:28",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"65:33:14": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:33:28",
0
],
"prompt": "",
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:33:17": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:33:28",
0
],
"prompt": [
"66",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:33:19": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"65:33:21",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"65:33:21": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"65:33:13",
0
],
"model": [
"65:33:8",
0
],
"negative": [
"65:33:14",
0
],
"positive": [
"65:33:17",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 1077007216372824,
"steps": 4
},
"_meta": {
"title": "KSampler"
}
},
"65:33:28": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"25",
0
],
"megapixels": 1,
"resolution_steps": 1,
"upscale_method": "nearest-exact"
},
"_meta": {
"title": "Scale Image to Total Pixels"
}
},
"65:33:32": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"65:33:19",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"65:33:8": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"65:33:11",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
},
"65:35:11": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"48:20",
0
],
"sampling": "flow",
"shift": 3
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"65:35:13": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"65:35:28",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"65:35:14": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:35:28",
0
],
"prompt": "",
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:35:17": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:35:28",
0
],
"prompt": [
"67",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:35:19": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"65:35:21",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"65:35:21": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"65:35:13",
0
],
"model": [
"65:35:8",
0
],
"negative": [
"65:35:14",
0
],
"positive": [
"65:35:17",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 953430930310581,
"steps": 4
},
"_meta": {
"title": "KSampler"
}
},
"65:35:28": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"25",
0
],
"megapixels": 1,
"resolution_steps": 1,
"upscale_method": "nearest-exact"
},
"_meta": {
"title": "Scale Image to Total Pixels"
}
},
"65:35:32": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"65:35:19",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"65:35:8": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"65:35:11",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
},
"65:37:11": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"48:20",
0
],
"sampling": "flow",
"shift": 3
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"65:37:13": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"65:37:28",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"65:37:14": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:37:28",
0
],
"prompt": "",
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:37:17": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:37:28",
0
],
"prompt": [
"69",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:37:19": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"65:37:21",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"65:37:21": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"65:37:13",
0
],
"model": [
"65:37:8",
0
],
"negative": [
"65:37:14",
0
],
"positive": [
"65:37:17",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 1045599286507747,
"steps": 4
},
"_meta": {
"title": "KSampler"
}
},
"65:37:28": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"25",
0
],
"megapixels": 1,
"resolution_steps": 1,
"upscale_method": "nearest-exact"
},
"_meta": {
"title": "Scale Image to Total Pixels"
}
},
"65:37:32": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"65:37:19",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"65:37:8": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"65:37:11",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
},
"65:39:11": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"48:20",
0
],
"sampling": "flow",
"shift": 3
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"65:39:13": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"65:39:28",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"65:39:14": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:39:28",
0
],
"prompt": "",
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:39:17": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:39:28",
0
],
"prompt": [
"68",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:39:19": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"65:39:21",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"65:39:21": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"65:39:13",
0
],
"model": [
"65:39:8",
0
],
"negative": [
"65:39:14",
0
],
"positive": [
"65:39:17",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 113699216259397,
"steps": 4
},
"_meta": {
"title": "KSampler"
}
},
"65:39:28": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"25",
0
],
"megapixels": 1,
"resolution_steps": 1,
"upscale_method": "nearest-exact"
},
"_meta": {
"title": "Scale Image to Total Pixels"
}
},
"65:39:32": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"65:39:19",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"65:39:8": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"65:39:11",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
},
"65:40:11": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"48:20",
0
],
"sampling": "flow",
"shift": 3
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"65:40:13": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"65:40:28",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"65:40:14": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:40:28",
0
],
"prompt": "",
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:40:17": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:40:28",
0
],
"prompt": [
"72",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:40:19": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"65:40:21",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"65:40:21": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"65:40:13",
0
],
"model": [
"65:40:8",
0
],
"negative": [
"65:40:14",
0
],
"positive": [
"65:40:17",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 218463078341715,
"steps": 4
},
"_meta": {
"title": "KSampler"
}
},
"65:40:28": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"25",
0
],
"megapixels": 1,
"resolution_steps": 1,
"upscale_method": "nearest-exact"
},
"_meta": {
"title": "Scale Image to Total Pixels"
}
},
"65:40:32": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"65:40:19",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"65:40:8": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"65:40:11",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
},
"65:42:11": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"48:20",
0
],
"sampling": "flow",
"shift": 3
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"65:42:13": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"65:42:28",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"65:42:14": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:42:28",
0
],
"prompt": "",
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:42:17": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:42:28",
0
],
"prompt": [
"70",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:42:19": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"65:42:21",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"65:42:21": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"65:42:13",
0
],
"model": [
"65:42:8",
0
],
"negative": [
"65:42:14",
0
],
"positive": [
"65:42:17",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 653850485123300,
"steps": 4
},
"_meta": {
"title": "KSampler"
}
},
"65:42:28": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"25",
0
],
"megapixels": 1,
"resolution_steps": 1,
"upscale_method": "nearest-exact"
},
"_meta": {
"title": "Scale Image to Total Pixels"
}
},
"65:42:32": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"65:42:19",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"65:42:8": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"65:42:11",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
},
"65:44:11": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"48:20",
0
],
"sampling": "flow",
"shift": 3
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"65:44:13": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"65:44:28",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"65:44:14": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:44:28",
0
],
"prompt": "",
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:44:17": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:44:28",
0
],
"prompt": [
"71",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:44:19": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"65:44:21",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"65:44:21": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"65:44:13",
0
],
"model": [
"65:44:8",
0
],
"negative": [
"65:44:14",
0
],
"positive": [
"65:44:17",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 928311072042245,
"steps": 4
},
"_meta": {
"title": "KSampler"
}
},
"65:44:28": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"25",
0
],
"megapixels": 1,
"resolution_steps": 1,
"upscale_method": "nearest-exact"
},
"_meta": {
"title": "Scale Image to Total Pixels"
}
},
"65:44:32": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"65:44:19",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"65:44:8": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"65:44:11",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
},
"65:46:11": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"48:20",
0
],
"sampling": "flow",
"shift": 3
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"65:46:13": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"65:46:28",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"65:46:14": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:46:28",
0
],
"prompt": "",
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:46:17": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"48:10",
0
],
"image1": [
"65:46:28",
0
],
"prompt": [
"73",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"65:46:19": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"65:46:21",
0
],
"vae": [
"48:9",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"65:46:21": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"65:46:13",
0
],
"model": [
"65:46:8",
0
],
"negative": [
"65:46:14",
0
],
"positive": [
"65:46:17",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 922804940922314,
"steps": 4
},
"_meta": {
"title": "KSampler"
}
},
"65:46:28": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"25",
0
],
"megapixels": 1,
"resolution_steps": 1,
"upscale_method": "nearest-exact"
},
"_meta": {
"title": "Scale Image to Total Pixels"
}
},
"65:46:32": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"65:46:19",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"65:46:8": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"65:46:11",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
}
})
workflow.set_input("25", "image", client.assets.from_url("https://comfy.org/catalog-media/1a63f14f-095a-4063-ad5b-558594f02b08/d32751b1-0c19-495c-8efe-fd5b27aa3d6b"))
# 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("31"):
output.to_file(output.name)
for output in job.get_outputs("34"):
output.to_file(output.name)
for output in job.get_outputs("36"):
output.to_file(output.name)
for output in job.get_outputs("38"):
output.to_file(output.name)
for output in job.get_outputs("47"):
output.to_file(output.name)
for output in job.get_outputs("45"):
output.to_file(output.name)
for output in job.get_outputs("41"):
output.to_file(output.name)
for output in job.get_outputs("43"):
output.to_file(output.name)試試範例
關於此工作流程
「一鍵多視角場景生成」工作流程,讓您能從單一影像輸入輕鬆產生多種場景視角。透過 Qwen-Image-Edit 模型,流程能有效分析輸入影像並產生多個新視角,豐富視覺敘事,特別適用於建築、遊戲設計與虛擬實境等需多角度理解場景的領域。
技術上,流程從 LoadImage 節點開始,將使用者的場景影像匯入系統。Qwen-Image-Edit 模型(節點 ID:0f47377a-2933-4dba-9791-a9c54b078226)負責處理影像並產生新視角。最後,結果透過 SaveImage 節點儲存。這個簡化流程讓使用者能以最少操作完成複雜影像編輯,對專業人士與愛好者都極具價值。
問答
High-resolution images with clear details yield the best results, as the model can generate more accurate and diverse angles.
Currently, the workflow is set to generate a predefined set of angles. Future updates may allow customization.
This workflow is optimized for still images. For video, consider using a sequence of images extracted from the video.
Try using a higher quality input image or adjusting the scene composition to enhance the model's ability to generate diverse angles.