Seedance 2.0 멀티프레임 스티치
이 워크플로는 크레딧을 많이 사용합니다! 이 워크플로는 seedance 2.0을 사용해 스티치된 멀티프레임 비디오를 만들 수 있습니다. 빠르게 반복 작업 및 인비트위닝을 하기에 좋습니다.
정보
Seedance 2.0 Multiframe Stitch는 두 키 이미지 사이의 부드러운 중간 프레임을 생성한 다음 이를 비디오로 조립하는 ComfyUI 워크플로입니다. 핵심은 ByteDance2FirstLastFrameNode로, Seedance 2.0 모델을 사용해 첫 프레임에서 마지막 프레임으로 전환되는 시퀀스를 합성합니다. 이 방식은 코드 작성이나 외부 도구 처리 없이 빠른 반복, 모션 스터디, 빠른 인비트위닝에 적합합니다. 참고: Seedance 2.0 실행은 크레딧 소모가 큰 편이므로 프레임 수와 해상도를 그에 맞게 계획하세요.
기술적으로 워크플로는 LoadImage로 시작 및 종료 이미지를 로드하는 것부터 시작합니다. 해당 이미지는 ByteDance2FirstLastFrameNode로 전달되어 보간 프레임의 멀티프레임 배치를 생성합니다. ImageBatch는 비디오 생성을 위해 프레임이 올바르게 그룹화되도록 보장합니다. GetVideoComponents는 레퍼런스에 맞춰 정렬하는 경우 프레임 속도 같은 비디오 속성을 설정하거나 맞추는 데 사용할 수 있습니다. 마지막으로 CreateVideo가 프레임 배치를 비디오 스트림으로 조립하고, SaveVideo가 결과를 디스크에 저장합니다. 결과는 두 장의 정지 이미지로만 만든 스티치된 일관 전환 클립입니다.
이 워크플로의 장점은 제어 가능성과 속도의 결합입니다. 앵커 프레임을 고르면 노드가 모션을 보간하고, 나머지 그래프가 안정적으로 출력을 컴파일 및 저장합니다. 최상의 결과를 위해 두 입력 이미지는 동일한 해상도와 비율로 유지하고, 비용 관리는 노드 설정에서 노출되는 경우 프레임 수, 해상도, 반복 횟수를 줄여 진행하세요.
제공할 항목
- 워크플로 읽는 중
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
- 내 파일
- 코드가 해당 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({
"1": {
"class_type": "ByteDance2FirstLastFrameNode",
"inputs": {
"first_frame": [
"3",
0
],
"first_frame_asset_id": "",
"last_frame": [
"4",
0
],
"last_frame_asset_id": "",
"model": "Seedance 2.0",
"model.duration": 4,
"model.generate_audio": False,
"model.prompt": "extreme shot shifts as two character run and jump and make action poses, anime style, squash and stretch animation, calarts style, cartoon network style",
"model.ratio": "16:9",
"model.resolution": "1080p",
"seed": 223429887,
"watermark": False
},
"_meta": {
"title": "ByteDance Seedance 2.5 First-Last-Frame to Video"
}
},
"2": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/Seedance2.0_flf2v",
"format": "auto",
"format.codec": "auto",
"video": [
"1",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"3": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"4": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_2_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"5": {
"class_type": "ByteDance2FirstLastFrameNode",
"inputs": {
"first_frame": [
"4",
0
],
"first_frame_asset_id": "",
"last_frame": [
"7",
0
],
"last_frame_asset_id": "",
"model": "Seedance 2.0",
"model.duration": 4,
"model.generate_audio": False,
"model.prompt": "extreme shot shifts as two character run and jump and make action poses, anime style, squash and stretch animation, calarts style, cartoon network style",
"model.ratio": "16:9",
"model.resolution": "1080p",
"seed": 1662723398,
"watermark": False
},
"_meta": {
"title": "ByteDance Seedance 2.5 First-Last-Frame to Video"
}
},
"6": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/Seedance2.0_flf2v",
"format": "auto",
"format.codec": "auto",
"video": [
"5",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"7": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_3_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"8": {
"class_type": "ByteDance2FirstLastFrameNode",
"inputs": {
"first_frame": [
"7",
0
],
"first_frame_asset_id": "",
"last_frame": [
"10",
0
],
"last_frame_asset_id": "",
"model": "Seedance 2.0",
"model.duration": 4,
"model.generate_audio": False,
"model.prompt": "extreme shot shifts as two character run and jump and make action poses, anime style, squash and stretch animation, calarts style, cartoon network style",
"model.ratio": "16:9",
"model.resolution": "1080p",
"seed": 1366057492,
"watermark": False
},
"_meta": {
"title": "ByteDance Seedance 2.5 First-Last-Frame to Video"
}
},
"9": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/Seedance2.0_flf2v",
"format": "auto",
"format.codec": "auto",
"video": [
"8",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"10": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_4_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"11": {
"class_type": "ByteDance2FirstLastFrameNode",
"inputs": {
"first_frame": [
"10",
0
],
"first_frame_asset_id": "",
"last_frame": [
"15",
0
],
"last_frame_asset_id": "",
"model": "Seedance 2.0",
"model.duration": 4,
"model.generate_audio": False,
"model.prompt": "extreme shot shifts as two character run and jump and make action poses, anime style, squash and stretch animation, calarts style, cartoon network style",
"model.ratio": "16:9",
"model.resolution": "1080p",
"seed": 651642512,
"watermark": False
},
"_meta": {
"title": "ByteDance Seedance 2.5 First-Last-Frame to Video"
}
},
"12": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/Seedance2.0_flf2v",
"format": "auto",
"format.codec": "auto",
"video": [
"11",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"13": {
"class_type": "ByteDance2FirstLastFrameNode",
"inputs": {
"first_frame": [
"15",
0
],
"first_frame_asset_id": "",
"last_frame": [
"16",
0
],
"last_frame_asset_id": "",
"model": "Seedance 2.0",
"model.duration": 4,
"model.generate_audio": False,
"model.prompt": "extreme shot shifts as two character run and jump and make action poses, anime style, squash and stretch animation, calarts style, cartoon network style",
"model.ratio": "16:9",
"model.resolution": "1080p",
"seed": 167021654,
"watermark": False
},
"_meta": {
"title": "ByteDance Seedance 2.5 First-Last-Frame to Video"
}
},
"14": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/Seedance2.0_flf2v",
"format": "auto",
"format.codec": "auto",
"video": [
"13",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"15": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_5_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"16": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_6_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"17": {
"class_type": "ImageBatch",
"inputs": {
"image1": [
"27",
0
],
"image2": [
"26",
0
]
},
"_meta": {
"title": "Batch Images (DEPRECATED)"
}
},
"18": {
"class_type": "ImageBatch",
"inputs": {
"image1": [
"17",
0
],
"image2": [
"25",
0
]
},
"_meta": {
"title": "Batch Images (DEPRECATED)"
}
},
"19": {
"class_type": "ImageBatch",
"inputs": {
"image1": [
"18",
0
],
"image2": [
"24",
0
]
},
"_meta": {
"title": "Batch Images (DEPRECATED)"
}
},
"20": {
"class_type": "ImageBatch",
"inputs": {
"image1": [
"19",
0
],
"image2": [
"23",
0
]
},
"_meta": {
"title": "Batch Images (DEPRECATED)"
}
},
"21": {
"class_type": "CreateVideo",
"inputs": {
"bit_depth": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": 24,
"images": [
"20",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"22": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/ComfyUI",
"format": "auto",
"format.codec": "auto",
"video": [
"21",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"23": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"13",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"24": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"11",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"25": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"8",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"26": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"5",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"27": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"1",
0
]
},
"_meta": {
"title": "Get Video Components"
}
}
})
# Replace each example.com URL with a public URL of your file.
workflow.set_input("3", "image", client.assets.from_url("https://example.com/replace-with-a-url/image"))
workflow.set_input("4", "image", client.assets.from_url("https://example.com/replace-with-a-url/image_2"))
workflow.set_input("7", "image", client.assets.from_url("https://example.com/replace-with-a-url/image_3"))
workflow.set_input("10", "image", client.assets.from_url("https://example.com/replace-with-a-url/image_4"))
workflow.set_input("15", "image", client.assets.from_url("https://example.com/replace-with-a-url/image_5"))
workflow.set_input("16", "image", client.assets.from_url("https://example.com/replace-with-a-url/image_6"))
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)질문과 답변
Seedance 2.0 모델을 사용해 첫 이미지와 마지막 이미지 사이의 중간 프레임을 생성합니다. 출력은 두 입력 사이를 부드럽게 전환하는 다중 프레임 배치입니다.
Seedance 2.0 추론은 리소스를 많이 사용할 수 있습니다. 크레딧 사용량은 프레임 수, 해상도, 그리고 품질 설정에 따라 증가합니다. 비용을 줄이려면 중간 프레임 수를 줄이고, 출력 해상도를 낮추거나, 품질/반복 컨트롤이 있다면 값을 낮추세요.
두 가지가 중요합니다: 생성된 프레임 수와 CreateVideo에서 사용하는 FPS입니다. 프레임이 많거나 FPS가 높을수록 더 길고/더 부드러운 클립이 됩니다. GetVideoComponents로 레퍼런스 FPS에 맞추거나, CreateVideo에서 FPS를 수동으로 설정하세요.
프레이밍, 조명, 피사체 크기가 일관된 시작/끝 이미지를 사용하세요. 두 이미지의 해상도/비율을 동일하게 유지하세요. 노드가 시드나 강도/부드러움 파라미터를 제공한다면 시드를 고정해 재현성을 확보하고, 강도를 더 보수적인 모션 쪽으로 조정해 보세요.