Wan 2.1 Fun Camera 14B
使用完整 14B 模型產生高品質影片,支援高階鏡頭控制
關於
ComfyUI 中的「Wan 2.1 Fun Camera 14B」工作流程用於搭配進階鏡頭控制,使用 Wan2.1 模型生成高品質影片。此工作流程整合多個較進階的節點(包含 KSampler、CLIPTextEncode 與 VAEDecode)來產生具吸引力的影片輸出。流程先透過 UNETLoader 與 VAELoader 等節點載入必要模型,讓系統做好影片生成準備。接著使用 WanCameraImageToVideo 與 WanCameraEmbedding 節點套用動態鏡頭運動與設定,以便在敘事上提供更高的創作控制。最後由 CreateVideo 與 SaveVideo 節點將生成結果組合並儲存成影片,讓製作流程更順暢。
在技術層面,此工作流程的價值在於把 Wan2.1 模型與進階擴散技術結合,產出不只畫質高、也更有細節與動態的影片。透過 CLIPVisionLoader 與 CLIPVisionEncode 節點,能讓視覺元素在提示詞引導下更貼近目標風格與敘事需求。這使它特別適合想要製作電影感影片內容、並精準控制視覺美術與鏡頭動態的創作者。
您提供的內容
- 正在讀取工作流程
在 ComfyUI 中執行。 此工作流程無法在此頁面上執行。請在已載入所有內容的 Comfy Cloud 中開啟,或下載到您自己的 ComfyUI。
在 Cloud 中試用工作流程內部
節點圖的唯讀預覽。請在 Comfy Cloud 中開啟,或下載後編輯節點。
Loading the graph
Open full-size workflow preview從程式碼使用此工作流程
可行時會根據工作流程圖和輸入內容產生;否則會顯示儲存的範例。執行可能產生費用的程式碼前,請檢查認證資訊和端點。
What you need
- Runs on
- Comfy Cloud
- 金鑰
- COMFY_API_KEY
需要付費 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({
"3": {
"class_type": "KSampler",
"inputs": {
"cfg": 6,
"denoise": 1,
"latent_image": [
"56",
2
],
"model": [
"54",
0
],
"negative": [
"56",
1
],
"positive": [
"56",
0
],
"sampler_name": "uni_pc",
"scheduler": "simple",
"seed": 536456977716011,
"steps": 20
},
"_meta": {
"title": "KSampler"
}
},
"6": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"38",
0
],
"text": "a vintage 1950s jazz bar, cinematic lighting, a well-dressed pianist playing passionately on an old upright piano, surrounded by saxophonists in dark suits, ambient smoke drifting in the warm air, smooth jazz atmosphere, camera slowly panning around the pianist, fingers moving on keys, soft spotlight from above, gentle camera shake and focus pull, close-up of piano keys, slow zoom in and out, realistic shadows and reflections, fun camera movement, Wan2.1 FunInP style, felt texture overlay, warm amber tones, retro film look, dynamic storytelling shot\n"
},
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"7": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"38",
0
],
"text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
},
"_meta": {
"title": "CLIP Text Encode (Negative Prompt)"
}
},
"8": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"3",
0
],
"vae": [
"39",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"37": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "wan2.1_fun_camera_v1.1_14B_bf16.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"38": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"device": "default",
"type": "wan"
},
"_meta": {
"title": "Load CLIP"
}
},
"39": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "wan_2.1_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"49": {
"class_type": "CLIPVisionLoader",
"inputs": {
"clip_name": "clip_vision_h.safetensors"
},
"_meta": {
"title": "Load CLIP Vision"
}
},
"51": {
"class_type": "CLIPVisionEncode",
"inputs": {
"clip_vision": [
"49",
0
],
"crop": "none",
"image": [
"52",
0
]
},
"_meta": {
"title": "CLIP Vision Encode"
}
},
"52": {
"class_type": "LoadImage",
"inputs": {
"image": "video_wan2.1_fun_camera_v1.1_14B_start_image.jpg"
},
"_meta": {
"title": "Load Image"
}
},
"54": {
"class_type": "ModelSamplingSD3",
"inputs": {
"model": [
"37",
0
],
"shift": 8
},
"_meta": {
"title": "ModelSamplingSD3"
}
},
"56": {
"class_type": "WanCameraImageToVideo",
"inputs": {
"batch_size": 1,
"camera_conditions": [
"57",
0
],
"clip_vision_output": [
"51",
0
],
"height": [
"57",
2
],
"length": [
"57",
3
],
"negative": [
"7",
0
],
"positive": [
"6",
0
],
"start_image": [
"52",
0
],
"vae": [
"39",
0
],
"width": [
"57",
1
]
},
"_meta": {
"title": "WanCameraImageToVideo"
}
},
"57": {
"class_type": "WanCameraEmbedding",
"inputs": {
"camera_pose": "Zoom Out",
"cx": 0.5,
"cy": 0.5,
"fx": 0.5,
"fy": 0.5,
"height": 512,
"length": 81,
"speed": 1,
"width": 512
},
"_meta": {
"title": "WanCameraEmbedding"
}
},
"58": {
"class_type": "CreateVideo",
"inputs": {
"bit_depth": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": 16,
"images": [
"8",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"59": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/ComfyUI",
"format": "auto",
"format.codec": "auto",
"video": [
"58",
0
]
},
"_meta": {
"title": "Save Video"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)問答
需使用 Wan2.1 模型及相關組件,如 UNETLoader 與 VAELoader 以進行影片生成。
可以,WanCameraImageToVideo 與 WanCameraEmbedding 節點可自訂鏡頭設定,產生動態影片。
請於 CLIPTextEncode 節點輸入詳細提示詞,引導影片的視覺風格與敘事。
最終影片會以標準影片格式儲存,方便於大多數媒體播放器與平台使用。
相關工作流程
- Wan2.1, ChronoEdit, Nvidia
ChronoEdit 14B:圖像編輯
- Wan2.1, ChronoEdit, Nvidia
ChronoEdit 14B:圖像編輯
- Wan2.1, Wan
Wan 2.1 ControlNet
- Wan2.1, Wan
Wan 2.1 Fun Camera 1.3B
- Wan2.1, Wan
Wan 2.1 首尾幀影片 720p F16
- Wan2.1, Wan
Wan ATI
- Wan2.1, Wan
Wan VACE控制影片
- Wan2.1, Wan
Wan2.1 Alpha 文生影片
- Wan2.1, Wan
Wan2.1 VACE 區域性重繪
- Wan2.1, Wan
Wan2.1 VACE 參考生影片
- Wan2.1, Wan
Wan2.1 VACE 擴圖
- Wan2.1, Wan
Wan2.1 VACE 文生影片