إنشاء انتقالات متصلة باستخدام LTX 2.3
أنشئ انتقالات متصلة بين اللقطات باستخدام سير عمل LTX 2.3 هذا، مع FLW LoRA من Systsms
داخل سير العمل
معاينة للقراءة فقط للقالب المصدر. افتحه في Cloud لاستكشاف العُقد وإجراء التغييرات.
Loading the graph
Open full-size workflow previewالملفات في سير العمل هذا
- المخرج
- فيديو
- المؤلف
- ComfyUI
استدعِ هذا النموذج من التعليمة البرمجية الخاصة بك
يستخدم الطلب أدناه المخطط والإعدادات المُعدّة نفسها كما في 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({
"1": {
"class_type": "DiffusionModelLoaderKJ",
"inputs": {
"compute_dtype": "bf16",
"enable_fp16_accumulation": False,
"model_name": "ltx-2.3-22b-dev_transformer_only_bf16.safetensors",
"patch_cublaslinear": False,
"sage_attention": "disabled",
"weight_dtype": "default"
},
"_meta": {
"title": "Diffusion Model Loader KJ"
}
},
"4": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "ltx-2.3-22b-distilled-1.1_lora-dynamic_fro09_avg_rank_111_bf16.safetensors",
"model": [
"49",
0
],
"strength_model": 0.5
},
"_meta": {
"title": "Load LoRA"
}
},
"5": {
"class_type": "VAELoaderKJ",
"inputs": {
"device": "main_device",
"vae_name": "LTX23_video_vae_bf16.safetensors",
"weight_dtype": "bf16"
},
"_meta": {
"title": "VAELoader KJ"
}
},
"6": {
"class_type": "VAELoaderKJ",
"inputs": {
"device": "main_device",
"vae_name": "LTX23_audio_vae_bf16.safetensors",
"weight_dtype": "bf16"
},
"_meta": {
"title": "VAELoader KJ"
}
},
"8": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"33",
0
],
"text": [
"80",
0
]
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"9": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"33",
0
],
"text": ""
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"10": {
"class_type": "LTXVConditioning",
"inputs": {
"frame_rate": 24,
"negative": [
"9",
0
],
"positive": [
"8",
0
]
},
"_meta": {
"title": "LTXVConditioning"
}
},
"13": {
"class_type": "LTXVAddGuide",
"inputs": {
"frame_idx": 0,
"image": [
"74",
0
],
"latent": [
"14",
0
],
"negative": [
"10",
1
],
"positive": [
"10",
0
],
"strength": 1,
"vae": [
"5",
0
]
},
"_meta": {
"title": "LTXVAddGuide"
}
},
"14": {
"class_type": "EmptyLTXVLatentVideo",
"inputs": {
"batch_size": 1,
"height": [
"74",
2
],
"length": [
"74",
3
],
"width": [
"74",
1
]
},
"_meta": {
"title": "Empty LTXV Latent Video"
}
},
"15": {
"class_type": "LTXVConcatAVLatent",
"inputs": {
"audio_latent": [
"29",
0
],
"video_latent": [
"13",
2
]
},
"_meta": {
"title": "Concat AV Latent"
}
},
"17": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"19",
0
],
"latent_image": [
"15",
0
],
"noise": [
"18",
0
],
"sampler": [
"20",
0
],
"sigmas": [
"21",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"18": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 644688566928704
},
"_meta": {
"title": "RandomNoise"
}
},
"19": {
"class_type": "CFGGuider",
"inputs": {
"cfg": 1,
"model": [
"4",
0
],
"negative": [
"13",
1
],
"positive": [
"13",
0
]
},
"_meta": {
"title": "CFG Guider"
}
},
"20": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "euler_ancestral_cfg_pp"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"21": {
"class_type": "BasicScheduler",
"inputs": {
"denoise": 1,
"model": [
"4",
0
],
"scheduler": "linear_quadratic",
"steps": 8
},
"_meta": {
"title": "BasicScheduler"
}
},
"23": {
"class_type": "LTXVSeparateAVLatent",
"inputs": {
"av_latent": [
"17",
0
]
},
"_meta": {
"title": "Separate AV Latent"
}
},
"24": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"31",
2
],
"vae": [
"5",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"25": {
"class_type": "LTXVAudioVAEDecode",
"inputs": {
"audio_vae": [
"6",
0
],
"samples": [
"23",
1
]
},
"_meta": {
"title": "LTXV Audio VAE Decode"
}
},
"26": {
"class_type": "VHS_VideoCombine",
"inputs": {
"audio": [
"25",
0
],
"crf": 10,
"filename_prefix": "SYSTMS_FLW",
"format": "video/h264-mp4",
"frame_rate": 24,
"images": [
"24",
0
],
"loop_count": 0,
"pingpong": False,
"pix_fmt": "yuv420p",
"save_metadata": True,
"save_output": True,
"trim_to_audio": False
},
"_meta": {
"title": "Video Combine 🎥🅥🅗🅢"
}
},
"29": {
"class_type": "SetLatentNoiseMask",
"inputs": {
"mask": [
"30",
0
],
"samples": [
"98",
0
]
},
"_meta": {
"title": "Set Latent Noise Mask"
}
},
"30": {
"class_type": "SolidMask",
"inputs": {
"height": [
"74",
2
],
"value": 0,
"width": [
"74",
1
]
},
"_meta": {
"title": "Create Solid Mask"
}
},
"31": {
"class_type": "LTXVCropGuides",
"inputs": {
"latent": [
"23",
0
],
"negative": [
"13",
0
],
"positive": [
"13",
0
]
},
"_meta": {
"title": "LTXVCropGuides"
}
},
"33": {
"class_type": "DualCLIPLoader",
"inputs": {
"clip_name1": "gemma_3_12B_it.safetensors",
"clip_name2": "ltx-2.3_text_projection_bf16.safetensors",
"device": "default",
"type": "ltxv"
},
"_meta": {
"title": "Load CLIP (Dual)"
}
},
"49": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "systms__SYSTMS-FLW-IC-LORA-LTX-23__SYSTMS_FLW_V1_LTX23.safetensors",
"model": [
"1",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"61": {
"class_type": "GeminiNode",
"inputs": {
"model": "gemini-3-1-pro",
"prompt": "your task is to write an LTX 2.3 LoRA video prompt that describes the attached video, inferring a seamless morphing transition where the gray area is, using the following formula:\n\n[Action A] seamlessly transforms into [Action B]. \n[Subject A description] becomes [Subject B description]. \n[Setting A] shifts to [Setting B]. \n[Camera behavior across the transition]. \n[Lighting/mood continuity].\n\nHere is an example of what that might look like:\n\nA motocross rider performing a mid-air backflip seamlessly transforms into a man standing and holding a basketball. The upside-down rider on a dirt bike becomes a young man in a black t-shirt and white shorts. A mountainous landscape over a lake shifts to an outdoor urban basketball court with a city skyline. The camera holds steady through the morph, keeping the central figure framed. Soft evening daylight throughout, continuous and even.\n\nreturn the prompt only",
"seed": 42,
"system_prompt": "",
"video": [
"63",
0
]
},
"_meta": {
"title": "Google Gemini"
}
},
"63": {
"class_type": "CreateVideo",
"inputs": {
"bit_depth": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": 24,
"images": [
"74",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"69": {
"class_type": "VHS_LoadVideo",
"inputs": {
"custom_height": 0,
"custom_width": 0,
"force_rate": 0,
"format": "None",
"frame_load_cap": 25,
"select_every_nth": 1,
"skip_first_frames": 99,
"video": "UPLOADED_shot_a_FILENAME"
},
"_meta": {
"title": "SHOT A"
}
},
"70": {
"class_type": "VHS_LoadVideo",
"inputs": {
"custom_height": 0,
"custom_width": 0,
"force_rate": 0,
"format": "None",
"frame_load_cap": 25,
"select_every_nth": 1,
"skip_first_frames": 0,
"video": "UPLOADED_shot_b_FILENAME"
},
"_meta": {
"title": "SHOT B"
}
},
"71": {
"class_type": "WanVideoVACEStartToEndFrame",
"inputs": {
"empty_frame_level": 0.5,
"end_image": [
"82",
0
],
"end_index": -1,
"num_frames": 97,
"start_image": [
"81",
0
],
"start_index": 0
},
"_meta": {
"title": "WanVideo VACE Start To End Frame"
}
},
"74": {
"class_type": "GetImageSizeAndCount",
"inputs": {
"image": [
"71",
0
]
},
"_meta": {
"title": "Get Image Size & Count"
}
},
"80": {
"class_type": "JoinStrings",
"inputs": {
"delimiter": " ",
"string1": [
"86",
0
],
"string2": [
"61",
0
]
},
"_meta": {
"title": "Join Strings"
}
},
"81": {
"class_type": "ImageResizeKJv2",
"inputs": {
"crop_position": "center",
"device": "cpu",
"divisible_by": 32,
"height": 0,
"image": [
"69",
0
],
"keep_proportion": "resize",
"pad_color": "0, 0, 0",
"upscale_method": "lanczos",
"width": 1024
},
"_meta": {
"title": "Resize Image v2"
}
},
"82": {
"class_type": "ImageResizeKJv2",
"inputs": {
"crop_position": "center",
"device": "cpu",
"divisible_by": 32,
"height": [
"81",
2
],
"image": [
"70",
0
],
"keep_proportion": "crop",
"pad_color": "0, 0, 0",
"upscale_method": "lanczos",
"width": [
"81",
1
]
},
"_meta": {
"title": "Resize Image v2"
}
},
"86": {
"class_type": "PrimitiveString",
"inputs": {
"value": "FLW,"
},
"_meta": {
"title": "Text"
}
},
"96": {
"class_type": "LoadAudio",
"inputs": {
"audio": "UPLOADED_audio_FILENAME"
},
"_meta": {
"title": "Load Audio"
}
},
"98": {
"class_type": "LTXVAudioVAEEncode",
"inputs": {
"audio": [
"96",
0
],
"audio_vae": [
"6",
0
]
},
"_meta": {
"title": "LTXV Audio VAE Encode"
}
}
})
workflow.set_input("96", "audio", client.assets.from_url("https://comfy.org/catalog-media/62e56757-cd38-4e0c-bd65-4e796e740bd3/edd102b3-2d44-4ae0-b061-3a8c9cced5e6"))
workflow.set_input("69", "video", client.assets.from_url("https://comfy.org/catalog-media/f9a20f4c-7c3d-41a1-a6a0-d6347d4e528a/6541acd4-2f2b-470c-90a6-fa00623a9039"))
workflow.set_input("70", "video", client.assets.from_url("https://comfy.org/catalog-media/32276661-de3f-4636-9a29-92948278fa76/f7ef431a-9fc9-4ce9-93d5-c8572d383e62"))
# 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("26"):
output.to_file(output.name)جرّب مثالًا
حول سير العمل هذا
يبني سير عمل ComfyUI هذا انتقالات متصلة وموجّهة بالنص بين مقطعين مصدر باستخدام نموذج انتشار الفيديو LTX 2.3 وLoRA الخاص بانتقالات SYSTMS FLW. تقوم مجموعة MODELS بتحميل العمود الفقري LTX 2.3 (transformer فقط) عبر DiffusionModelLoaderKJ، وVAE المطابق عبر VAELoaderKJ، ثم تطبيق FLW LoRA باستخدام LoraLoaderModelOnly لترجيح النموذج نحو تغييرات لقطات طبيعية شبيهة بالتدفق. يتم ترميز المطالبات عبر CLIPTextEncode (مع خيار توليدها تلقائيًا عبر عقدة Gemini)، ثم توجيهها عبر LTXVConditioning وLTXVAddGuide للتحكم في محتوى الانتقال وأسلوبه.
على مستوى التنفيذ، يخصص سير العمل خطًا زمنيًا داخل EmptyLTXVLatentVideo، ويدير مسارات latent للصوت/الفيديو عبر LTXVSeparateAVLatent وLTXVConcatAVLatent، ويُحصر إزالة الضجيج في منطقة التسليم باستخدام SolidMask وSetLatentNoiseMask. تتم عملية أخذ العينات عبر SamplerCustomAdvanced مع CFGGuider وKSamplerSelect وBasicScheduler وRandomNoise لقابلية إعادة الإنتاج. بعد الاستدلال، يعيد VAEDecode بناء الإطارات وتقوم VHS_VideoCombine بتجميعها في فيديو نهائي. توفر LTXVCropGuides أدلة تركيبية لإبقاء العناصر مصطفّة بين اللقطات، ما يساعد النموذج على توليد مزج أنظف وأكثر واقعية.
الأسئلة والأجوبة
لا. هي اختيارية. افصل خرج النص عنها من CLIPTextEncode وأدخل برومبتك. استخدم القالب: "FLW, [Action A] seamlessly transforms into [Action B], [details]".
اضبط حدود تحميل الإطارات على المقطع A والمقطع B، ثم اضبط إجمالي عدد الإطارات على EmptyLTXVLatentVideo. طول الانتقال = إجمالي الإطارات − إطارات المقطع A − إطارات المقطع B.
ضع نموذج transformer الخاص بـ LTX 2.3 في models/diffusion_models، وSYSTMS FLW LoRA في models/loras، وVAE في models/vae. ثم حمّلها عبر DiffusionModelLoaderKJ وLoraLoaderModelOnly وVAELoaderKJ على التوالي.
حافظ على مقياس CFG متوسطًا (حوالي 3–5)، وتأكد من تأطير العناصر بشكل متشابه باستخدام LTXVCropGuides، وقيّد إزالة الضوضاء القوية إلى منطقة التسليم عبر SolidMask + SetLatentNoiseMask. يمكنك أيضًا خفض الدقة أو عدد الخطوات قليلًا لتجنب الإفراط في التفاصيل خارج الانتقال.