Wan 2.2 14B 이미지 기반 비디오 생성
Wan 2.2를 사용하여 정적인 이미지를 정밀한 모션 제어와 스타일 보존으로 동적 비디오로 변환합니다.
워크플로 내부
소스 템플릿의 읽기 전용 미리보기입니다. Cloud에서 열어 노드를 살펴보고 변경할 수 있습니다.
Loading the graph
Open full-size workflow preview코드에서 이 모델 호출하기
아래 요청은 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({
"97": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"108": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/Wan2.2_i2v",
"format": "auto",
"format.codec": "auto",
"video": [
"129:94",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"129:101": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors",
"model": [
"129:95",
0
],
"strength_model": 1.0000000000000002
},
"_meta": {
"title": "Load LoRA"
}
},
"129:102": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors",
"model": [
"129:96",
0
],
"strength_model": 1.0000000000000002
},
"_meta": {
"title": "Load LoRA"
}
},
"129:103": {
"class_type": "ModelSamplingSD3",
"inputs": {
"model": [
"129:117",
0
],
"shift": 5.000000000000001
},
"_meta": {
"title": "ModelSamplingSD3"
}
},
"129:104": {
"class_type": "ModelSamplingSD3",
"inputs": {
"model": [
"129:116",
0
],
"shift": 5.000000000000001
},
"_meta": {
"title": "ModelSamplingSD3"
}
},
"129:116": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"129:95",
0
],
"on_true": [
"129:101",
0
],
"switch": [
"129:131",
0
]
},
"_meta": {
"title": "Switch (Model)"
}
},
"129:117": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"129:96",
0
],
"on_true": [
"129:102",
0
],
"switch": [
"129:131",
0
]
},
"_meta": {
"title": "Switch (Model)"
}
},
"129:118": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 4
},
"_meta": {
"title": "Steps"
}
},
"129:119": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"129:128",
0
],
"on_true": [
"129:118",
0
],
"switch": [
"129:131",
0
]
},
"_meta": {
"title": "Switch (Steps)"
}
},
"129:120": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"129:126",
0
],
"on_true": [
"129:122",
0
],
"switch": [
"129:131",
0
]
},
"_meta": {
"title": "Switch (CFG)"
}
},
"129:122": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 1
},
"_meta": {
"title": "CFG"
}
},
"129:124": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 2
},
"_meta": {
"title": "split_step"
}
},
"129:125": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"129:127",
0
],
"on_true": [
"129:124",
0
],
"switch": [
"129:131",
0
]
},
"_meta": {
"title": "Switch (Split Step)"
}
},
"129:126": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 3.5
},
"_meta": {
"title": "CFG"
}
},
"129:127": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 10
},
"_meta": {
"title": "split_step"
}
},
"129:128": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 20
},
"_meta": {
"title": "Steps"
}
},
"129:131": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": True
},
"_meta": {
"title": "Enable 4steps LoRA?"
}
},
"129:84": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"device": "default",
"type": "wan"
},
"_meta": {
"title": "Load CLIP"
}
},
"129:85": {
"class_type": "KSamplerAdvanced",
"inputs": {
"add_noise": "disable",
"cfg": [
"129:120",
0
],
"end_at_step": [
"129:119",
0
],
"latent_image": [
"129:86",
0
],
"model": [
"129:103",
0
],
"negative": [
"129:98",
1
],
"noise_seed": 0,
"positive": [
"129:98",
0
],
"return_with_leftover_noise": "disable",
"sampler_name": "euler",
"scheduler": "simple",
"start_at_step": [
"129:125",
0
],
"steps": [
"129:119",
0
]
},
"_meta": {
"title": "KSampler (Advanced)"
}
},
"129:86": {
"class_type": "KSamplerAdvanced",
"inputs": {
"add_noise": "enable",
"cfg": [
"129:120",
0
],
"end_at_step": [
"129:125",
0
],
"latent_image": [
"129:98",
2
],
"model": [
"129:104",
0
],
"negative": [
"129:98",
1
],
"noise_seed": 264244520398999,
"positive": [
"129:98",
0
],
"return_with_leftover_noise": "enable",
"sampler_name": "euler",
"scheduler": "simple",
"start_at_step": 0,
"steps": [
"129:119",
0
]
},
"_meta": {
"title": "KSampler (Advanced)"
}
},
"129:87": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"129:85",
0
],
"vae": [
"129:90",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"129:89": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"129:84",
0
],
"text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
},
"_meta": {
"title": "CLIP Text Encode (Negative Prompt)"
}
},
"129:90": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "wan_2.1_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"129:93": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"129:84",
0
],
"text": "A high aerial drone shot over the cracked, parched desert lake bed as the herd of wild horses gallops forward, the black stallion leading in the foreground with its mane whipping in the wind. Hooves pound the dry clay and throw up long plumes of pale dust that drift and glow in the hazy sunlight. White, chestnut and bay horses surge behind him, their manes and tails streaming as the herd fans out and tightens again. Camera: the drone swoops low and fast alongside the black stallion, banks into a sweeping arc ahead of the herd, then rises and tilts down to reveal the whole herd racing toward the distant ranch fence. Dynamic, energetic motion, realistic gallop cycles, natural motion blur, warm dusty light, documentary realism."
},
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"129:94": {
"class_type": "CreateVideo",
"inputs": {
"bit_depth": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": 16,
"images": [
"129:87",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"129:95": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"129:96": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"129:98": {
"class_type": "WanImageToVideo",
"inputs": {
"batch_size": 1,
"height": 720,
"length": 81,
"negative": [
"129:89",
0
],
"positive": [
"129:93",
0
],
"start_image": [
"97",
0
],
"vae": [
"129:90",
0
],
"width": 1280
},
"_meta": {
"title": "WanImageToVideo"
}
}
})
workflow.set_input("97", "image", client.assets.from_url("https://comfy.org/catalog-media/151a692a-e9b7-4ce2-ab96-e63dad23740b/69375d1b-55df-452b-8814-f5b659a6d8de"))
# 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("108"):
output.to_file(output.name)예시 사용해 보기
이 워크플로 정보
'Wan 2.2 14B 이미지에서 비디오로' 워크플로는 정지 이미지를 동적인 비디오로 변환하도록 설계되었으며, 모션 제어의 정밀도와 스타일 보존에 초점을 맞춥니다. 이 워크플로는 Wan 2.2 모델, 특히 'wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors' 디퓨전 모델을 사용해 단일 이미지로부터 비디오 시퀀스를 생성합니다. 워크플로는 정지 이미지를 가져오는 LoadImage, 최종 비디오 결과물을 내보내는 SaveVideo 등 일련의 노드를 활용합니다. 고급 디퓨전 기법을 통해 생성된 비디오는 원본 이미지의 아트 스타일과 디테일을 유지하면서도 현실적인 움직임을 추가합니다.
기술적으로 이 워크플로는 정지 이미지에 노이즈를 적용한 뒤 디퓨전 단계로 점진적으로 정제하여 일관된 비디오 시퀀스를 만듭니다. 이 과정은 디퓨전 모델의 동작을 처리하는 84e2cf3f-de93-40ef-ab22-b9375296917b 노드에서 관리됩니다. 이 워크플로는 원작의 느낌을 유지한 채 정지 이미지를 애니메이트하려는 아티스트와 콘텐츠 크리에이터에게 특히 유용합니다. 고해상도 입력을 처리하고 고품질 비디오 출력을 생성할 수 있어, 크리에이티브 비디오 제작에 적합한 도구입니다.
질문과 답변
비디오가 품질과 스타일적 완성도를 유지하도록, 디테일이 선명하고 스타일이 명확한 고해상도 이미지가 가장 좋습니다.
네. 이 워크플로는 모션 파라미터를 조정해 애니메이션의 방향과 스타일을 유도할 수 있습니다.
처리 시간은 이미지 복잡도와 해상도에 따라 달라지지만, 일반적으로 1차 및 2차 생성이 각각 536초 및 513초 범위입니다.
현재 이 워크플로는 실시간 미리보기를 지원하지 않지만, 반복적으로 조정하고 필요 시 재생성할 수 있습니다.
관련 워크플로
- Wan2.1, Wan
Wan 2.1 ControlNet
- Wan2.1, Wan
Wan 2.1 Fun 카메라 1.3B
- Wan2.1, Wan
Wan 2.1 Fun 카메라 14B
- Wan2.1, Wan
Wan 2.1 시작-끝 프레임 비디오 720p F16
- Wan2.1, Wan
Wan 2.1 이미지 기반 비디오 생성
- Wan2.1, Wan
Wan 2.1 인페인팅
- Wan2.1, Wan
Wan 2.1 텍스트 기반 비디오 생성
- Wan2.2, Wan
Wan 2.2 14B Fun 인페인팅
- Wan2.2, Wan
Wan 2.2 14B Fun 제어
- Wan2.2, Wan
Wan 2.2 14B Fun 카메라 제어
- Wan2.2, Wan
Wan 2.2 14B 첫 번째-마지막 프레임 비디오
- Wan2.2, Wan
Wan 2.2 14B 텍스트 기반 비디오 생성