AnimateDiff - IPAdapters 루프 애니메이션
드래그 앤 드롭하여 이미지 더미를 꿈꾸듯 탐색하세요
워크플로 내부
소스 템플릿의 읽기 전용 미리보기입니다. Cloud에서 열어 노드를 살펴보고 변경할 수 있습니다.
Loading the graph
Open full-size workflow preview이 워크플로의 파일
- 출력
- 비디오
- 작성자
- Purz
코드에서 이 모델 호출하기
아래 요청은 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({
"14": {
"class_type": "VHS_VideoCombine",
"inputs": {
"crf": 12,
"filename_prefix": "AnimateDiff",
"format": "video/h264-mp4",
"frame_rate": 24,
"images": [
"38:13",
0
],
"loop_count": 0,
"pingpong": False,
"pix_fmt": "yuv420p",
"save_metadata": True,
"save_output": True,
"trim_to_audio": False
},
"_meta": {
"title": "Video Combine 🎥🅥🅗🅢"
}
},
"61": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_1_FILENAME"
},
"_meta": {
"title": "Image 1"
}
},
"62": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"61",
0
],
"megapixels": 1,
"resolution_steps": 1,
"upscale_method": "lanczos"
},
"_meta": {
"title": "Rescale Image 1"
}
},
"63": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_2_FILENAME"
},
"_meta": {
"title": "Image 2"
}
},
"64": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"63",
0
],
"megapixels": 1,
"resolution_steps": 1,
"upscale_method": "lanczos"
},
"_meta": {
"title": "Rescale Image 2"
}
},
"65": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_3_FILENAME"
},
"_meta": {
"title": "Image 3"
}
},
"66": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"65",
0
],
"megapixels": 1,
"resolution_steps": 1,
"upscale_method": "lanczos"
},
"_meta": {
"title": "Rescale Image 3"
}
},
"67": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"62",
0
],
"image_2": [
"64",
0
],
"image_3": [
"66",
0
],
"image_4": [
"62",
0
],
"inputcount": 4
},
"_meta": {
"title": "Image Batch Multi"
}
},
"76": {
"class_type": "VHS_VideoCombine",
"inputs": {
"crf": 12,
"filename_prefix": "AnimateDiff",
"format": "video/h264-mp4",
"frame_rate": 24,
"images": [
"77:75",
0
],
"loop_count": 0,
"pingpong": False,
"pix_fmt": "yuv420p",
"save_metadata": True,
"save_output": True,
"trim_to_audio": False
},
"_meta": {
"title": "Video Combine 🎥🅥🅗🅢"
}
},
"38:1": {
"class_type": "ADE_UseEvolvedSampling",
"inputs": {
"beta_schedule": "lcm >> sqrt_linear",
"context_options": [
"38:7",
0
],
"m_models": [
"38:2",
0
],
"model": [
"38:8",
0
],
"sample_settings": [
"38:6",
0
]
},
"_meta": {
"title": "Use Evolved Sampling 🎭🅐🅓②"
}
},
"38:10": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"38:8",
1
],
"text": "nsfw, nude"
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"38:11": {
"class_type": "KSampler",
"inputs": {
"cfg": 2,
"denoise": 1,
"latent_image": [
"38:12",
0
],
"model": [
"38:36",
0
],
"negative": [
"38:10",
0
],
"positive": [
"38:9",
0
],
"sampler_name": "lcm",
"scheduler": "beta",
"seed": 484814760137008,
"steps": 13
},
"_meta": {
"title": "KSampler"
}
},
"38:12": {
"class_type": "EmptyLatentImage",
"inputs": {
"batch_size": [
"38:27",
2
],
"height": 576,
"width": 1024
},
"_meta": {
"title": "Empty Latent Image"
}
},
"38:13": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"38:11",
0
],
"vae": [
"38:8",
2
]
},
"_meta": {
"title": "VAE Decode"
}
},
"38:2": {
"class_type": "ADE_ApplyAnimateDiffModelSimple",
"inputs": {
"effect_multival": [
"38:5",
0
],
"motion_model": [
"38:3",
0
],
"scale_multival": [
"38:4",
0
]
},
"_meta": {
"title": "Apply AnimateDiff Model 🎭🅐🅓②"
}
},
"38:21": {
"class_type": "IPAdapterUnifiedLoader",
"inputs": {
"model": [
"38:1",
0
],
"preset": "PLUS (high strength)"
},
"_meta": {
"title": "IPAdapter Unified Loader"
}
},
"38:27": {
"class_type": "IPAdapterWeights",
"inputs": {
"add_ending_frames": 16,
"add_starting_frames": 16,
"end_frame": 9999,
"frames": 48,
"image": [
"67",
0
],
"method": "alternate batches",
"start_frame": 0,
"timing": "ease_in",
"weights": "1.0, 0.0"
},
"_meta": {
"title": "IPAdapter Weights"
}
},
"38:3": {
"class_type": "ADE_LoadAnimateDiffModel",
"inputs": {
"model_name": "AnimateLCM_sd15_t2v.ckpt"
},
"_meta": {
"title": "Load AnimateDiff Model 🎭🅐🅓②"
}
},
"38:32": {
"class_type": "IPAdapterBatch",
"inputs": {
"embeds_scaling": "V only",
"encode_batch_size": 0,
"end_at": 1,
"image": [
"38:27",
3
],
"ipadapter": [
"38:21",
1
],
"model": [
"38:21",
0
],
"start_at": 0,
"weight": [
"38:27",
0
],
"weight_type": "ease in"
},
"_meta": {
"title": "IPAdapter Batch (Adv.)"
}
},
"38:33": {
"class_type": "IPAdapterBatch",
"inputs": {
"embeds_scaling": "V only",
"encode_batch_size": 0,
"end_at": 1,
"image": [
"38:27",
4
],
"ipadapter": [
"38:21",
1
],
"model": [
"38:32",
0
],
"start_at": 0,
"weight": [
"38:27",
1
],
"weight_type": "ease out"
},
"_meta": {
"title": "IPAdapter Batch (Adv.)"
}
},
"38:36": {
"class_type": "PatchModelAddDownscale",
"inputs": {
"block_number": 3,
"downscale_after_skip": True,
"downscale_factor": 2,
"downscale_method": "bicubic",
"end_percent": 0.35,
"model": [
"38:33",
0
],
"start_percent": 0,
"upscale_method": "bicubic"
},
"_meta": {
"title": "PatchModelAddDownscale (Kohya Deep Shrink)"
}
},
"38:4": {
"class_type": "ADE_MultivalDynamic",
"inputs": {
"float_val": 1
},
"_meta": {
"title": "Multival 🎭🅐🅓"
}
},
"38:5": {
"class_type": "ADE_MultivalDynamic",
"inputs": {
"float_val": 1
},
"_meta": {
"title": "Multival 🎭🅐🅓"
}
},
"38:6": {
"class_type": "ADE_AnimateDiffSamplingSettings",
"inputs": {
"adapt_denoise_steps": False,
"batch_offset": 0,
"noise_type": "repeated_context",
"seed_gen": "comfy",
"seed_offset": 0,
"seed_override": 0
},
"_meta": {
"title": "Sample Settings 🎭🅐🅓"
}
},
"38:7": {
"class_type": "ADE_LoopedUniformContextOptions",
"inputs": {
"closed_loop": False,
"context_length": 16,
"context_overlap": 4,
"context_stride": 1,
"fuse_method": "pyramid",
"guarantee_steps": 1,
"start_percent": 0,
"use_on_equal_length": False
},
"_meta": {
"title": "Context Options◆Looped Uniform 🎭🅐🅓"
}
},
"38:8": {
"class_type": "CheckpointLoaderSimple",
"inputs": {
"ckpt_name": "realismByStableYogi_v4LCM.safetensors"
},
"_meta": {
"title": "Load Checkpoint"
}
},
"38:9": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"38:8",
1
],
"text": "A slow, hypnotic dream in which a giant hourglass and its tiny cloaked wanderer drift through changing worlds: molten golden sand pours and glows, then freezes into shimmering blue ice under falling snow, then softens into moss, vines and blooming flowers in warm sunset light. Gentle continuous morphing, swirling particles of light and drifting mist, rippling reflections on the water, subtle camera breathing, painterly brushwork, rich saturated colour, smooth seamless loop with no cuts, ethereal and calm atmosphere, like a half-remembered dream."
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"77:69": {
"class_type": "RepeatImageBatch",
"inputs": {
"amount": [
"77:70",
3
],
"image": [
"62",
0
]
},
"_meta": {
"title": "Repeat Image Batch"
}
},
"77:70": {
"class_type": "GetImageSizeAndCount",
"inputs": {
"image": [
"38:13",
0
]
},
"_meta": {
"title": "Get Image Size & Count"
}
},
"77:71": {
"class_type": "RepeatImageBatch",
"inputs": {
"amount": [
"77:70",
3
],
"image": [
"64",
0
]
},
"_meta": {
"title": "Repeat Image Batch"
}
},
"77:72": {
"class_type": "RepeatImageBatch",
"inputs": {
"amount": [
"77:70",
3
],
"image": [
"66",
0
]
},
"_meta": {
"title": "Repeat Image Batch"
}
},
"77:73": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"77:69",
0
],
"image2": [
"77:71",
0
],
"match_image_size": True,
"spacing_color": "black",
"spacing_width": 10
},
"_meta": {
"title": "Stitch Images"
}
},
"77:74": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"77:73",
0
],
"image2": [
"77:72",
0
],
"match_image_size": True,
"spacing_color": "black",
"spacing_width": 10
},
"_meta": {
"title": "Stitch Images"
}
},
"77:75": {
"class_type": "ImageStitch",
"inputs": {
"direction": "down",
"image1": [
"77:74",
0
],
"image2": [
"38:13",
0
],
"match_image_size": True,
"spacing_color": "black",
"spacing_width": 10
},
"_meta": {
"title": "Stitch Images"
}
}
})
workflow.set_input("61", "image", client.assets.from_url("https://comfy.org/catalog-media/44f132a2-b86b-423a-9dea-cd45e8dc8a45/137fbc6b-7de9-4656-a813-7b6666d8b3da"))
workflow.set_input("63", "image", client.assets.from_url("https://comfy.org/catalog-media/0672b137-0632-4be0-80be-38150ed1f9d8/b3faec0a-3433-4529-9937-75cd0029a35b"))
workflow.set_input("65", "image", client.assets.from_url("https://comfy.org/catalog-media/746bafc1-ced6-4d5c-8460-302f786532b2/1d5e894e-b82a-439c-98c4-021685a5852c"))
# 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("14"):
output.to_file(output.name)
for output in job.get_outputs("76"):
output.to_file(output.name)예시 사용해 보기
이 워크플로 정보
이 ComfyUI 워크플로 'AnimateDiff - IPAdapters 루핑 애니메이션'은 여러 이미지 간에 매끄러운 애니메이션 전환을 생성하도록 설계되었습니다. Stable Diffusion 1.5(SD1.5)와 'comfyui-animatediff-evolved', 'comfyui_ipadapter_plus' 같은 커스텀 노드를 활용해 유려한 애니메이션을 구현합니다. 'VHS_VideoCombine'과 'ImageBatchMulti' 등 다양한 노드를 조합해 여러 이미지를 순차적으로 처리, 루핑 애니메이션 효과를 만듭니다. Weighted IPAdapters를 활용해 각 이미지 전환마다 일관된 스타일과 테마를 유지해 전체 애니메이션의 시각적 통일성을 높입니다.
기술적으로는, 'LoadImage' 노드에 이미지를 불러오고, 'ImageScaleToTotalPixels' 노드로 적절히 스케일링합니다. 'ImageBatchMulti' 노드는 여러 이미지를 배치로 처리하는 데 핵심 역할을 하며, 'VHS_VideoCombine' 노드는 이 이미지들을 연속적인 비디오 루프로 합칩니다. 이 구성은 다양한 장면이나 콘셉트 간 부드럽게 전환되는 시각 콘텐츠를 만들고자 하는 아티스트와 크리에이터에게 특히 유용합니다. 'comfyui-videohelpersuite'의 통합으로 비디오 출력 품질도 향상됩니다.
질문과 답변
'Weighted IPAdapters'는 모든 이미지에 일관된 시각적 스타일을 유지해 애니메이션 전환이 부드럽게 이어지도록 돕습니다.
이 워크플로는 SD1.5에 최적화되어 있습니다. 다른 버전에서도 동작할 수 있으나 결과는 보장되지 않습니다.
이미지의 스타일과 테마를 유사하게 맞추고, 'Weighted IPAdapters' 설정을 조정해 전환을 미세 조정하세요.
이 워크플로는 시각적 애니메이션에 중점을 둡니다. 애니메이션을 내보낸 후 비디오 편집 소프트웨어로 오디오를 추가할 수 있습니다.
관련 워크플로
- SSD1.5, Stability
Lotus 깊이
- SSD1.5
노이즈 주입 비디오 생성
- SSD1.5, Stability
이미지 생성
- LTX-2.3
Turn an image into a video
- MiniMax H3
Create a video from references
- LTX-2.3
Add camera motion first last frame
- Wan2.2
1.2 스타터 – 이미지에서 비디오로
- Gemini-3.1-flsih-lite, Kling 3.0
3단계: 연락처 시트 워크플로
- 파파트너 노드
Adjustment Frame 워크플로
- 파트너 노드
AI on the Lot 2026 - LTX-2.3 - i2v
- Google Gemini, Kling 3.0, Z-Image-Turbo
AIrt MAchIne(API 버전)
- Seedance1.0 Pro, ByteDance
ByteDance: 시작-끝 프레임 비디오