Wan 2.2 14B Fun 인페인팅
Wan 2.2 Fun Inp를 사용하여 시작 프레임과 끝 프레임에서 비디오를 생성합니다.
정보
‘Wan 2.2 14B Fun Inp’라는 제목의 이 ComfyUI 워크플로는 Wan 2.2 모델을 사용해 시작 프레임과 종료 프레임 사이를 보간해 비디오를 생성하도록 설계되었습니다. CLIPLoader, VAELoader, ModelSamplingSD3 등 여러 노드로 입력 이미지를 로드 및 처리하며, WanFunInpaintToVideo 노드가 인페인팅 기법을 적용해 비디오를 만드는 핵심 역할을 합니다. 이 워크플로는 비디오에서 자연스러운 전환을 만드는 데 특히 유용해, 프레임 사이를 부드럽게 모핑해야 하는 예술 비디오 프로젝트 또는 애니메이션에 적합합니다. KSamplerAdvanced와 VAEDecode 같은 고급 노드로 고품질 비디오 출력을 확보하며, LoraLoaderModelOnly를 포함해 모델 조정을 유연하게 할 수 있습니다.
제공할 항목
- 워크플로 읽는 중
ComfyUI에서 실행됩니다. 이 워크플로는 이 페이지에서 실행할 수 없습니다. 모든 항목이 로드된 Comfy Cloud에서 열거나, 자체 ComfyUI에서 사용하려면 다운로드하세요.
Cloud에서 사용해 보기워크플로 내부
노드 그래프의 읽기 전용 미리보기입니다. 노드를 편집하려면 Comfy Cloud에서 열거나 다운로드하세요.
Loading the graph
Open full-size workflow preview이 워크플로의 파일
- 작성자
- ComfyUI
사용자 지정 노드 필요
- 워크플로 읽는 중
코드에서 이 워크플로 사용하기
가능한 경우 워크플로 그래프와 입력을 기반으로 생성되며, 그렇지 않은 경우 저장된 예시가 표시됩니다. 비용이 발생할 수 있으므로 코드를 실행하기 전에 자격 증명과 엔드포인트를 검토하세요.
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({
"90": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"device": "default",
"type": "wan"
},
"_meta": {
"title": "Load CLIP"
}
},
"91": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"90",
0
],
"text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
},
"_meta": {
"title": "CLIP Text Encode (Negative Prompt)"
}
},
"92": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "wan_2.1_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"93": {
"class_type": "ModelSamplingSD3",
"inputs": {
"model": [
"116",
0
],
"shift": 8
},
"_meta": {
"title": "ModelSamplingSD3"
}
},
"94": {
"class_type": "ModelSamplingSD3",
"inputs": {
"model": [
"117",
0
],
"shift": 8
},
"_meta": {
"title": "ModelSamplingSD3"
}
},
"95": {
"class_type": "KSamplerAdvanced",
"inputs": {
"add_noise": "disable",
"cfg": 1,
"end_at_step": 4,
"latent_image": [
"96",
0
],
"model": [
"94",
0
],
"negative": [
"111",
1
],
"noise_seed": 0,
"positive": [
"111",
0
],
"return_with_leftover_noise": "disable",
"sampler_name": "euler",
"scheduler": "simple",
"start_at_step": 2,
"steps": 4
},
"_meta": {
"title": "KSampler (Advanced)"
}
},
"96": {
"class_type": "KSamplerAdvanced",
"inputs": {
"add_noise": "enable",
"cfg": 1,
"end_at_step": 2,
"latent_image": [
"111",
2
],
"model": [
"93",
0
],
"negative": [
"111",
1
],
"noise_seed": 221824495232956,
"positive": [
"111",
0
],
"return_with_leftover_noise": "enable",
"sampler_name": "euler",
"scheduler": "simple",
"start_at_step": 0,
"steps": 4
},
"_meta": {
"title": "KSampler (Advanced)"
}
},
"97": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"95",
0
],
"vae": [
"92",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"99": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"90",
0
],
"text": "A dreamy scene where a little cat is sleeping. Zoom in, and the cat opens its eyes, looks up, and blinks. In Q-style, with ice crystals."
},
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"100": {
"class_type": "CreateVideo",
"inputs": {
"bit_depth": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": 16,
"images": [
"97",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"101": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "wan2.2_fun_inpaint_high_noise_14B_fp8_scaled.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"102": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "wan2.2_fun_inpaint_low_noise_14B_fp8_scaled.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"110": {
"class_type": "LoadImage",
"inputs": {
"image": "video_wan2_2_14B_fun_inpaint_start_image.png"
},
"_meta": {
"title": "Load Image"
}
},
"111": {
"class_type": "WanFunInpaintToVideo",
"inputs": {
"batch_size": 1,
"end_image": [
"112",
0
],
"height": 640,
"length": 81,
"negative": [
"91",
0
],
"positive": [
"99",
0
],
"start_image": [
"110",
0
],
"vae": [
"92",
0
],
"width": 640
},
"_meta": {
"title": "WanFunInpaintToVideo"
}
},
"112": {
"class_type": "LoadImage",
"inputs": {
"image": "video_wan2_2_14B_fun_inpaint_end_image.png"
},
"_meta": {
"title": "Load Image"
}
},
"116": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors",
"model": [
"101",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"117": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors",
"model": [
"102",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"158": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/ComfyUI",
"format": "auto",
"format.codec": "auto",
"video": [
"100",
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.2 모델과 함께 CLIPLoader, VAELoader 같은 노드를 사용해 이미지 처리 및 비디오 생성을 수행합니다.
네. 워크플로에 비디오 크기 및 길이를 설정하는 노드가 포함되어 있어 VRAM 용량과 프로젝트 요구에 맞게 조정할 수 있습니다.
고품질 입력 프레임을 사용하고, 최적의 비디오 처리를 위해 KSamplerAdvanced 및 VAEDecode 노드를 사용하세요.
네. CLIPTextEncode 노드에 다양한 프롬프트를 입력해 선호에 따라 비디오 스타일과 외형을 가이드할 수 있습니다.