Создавайте плавные переходы с 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 строит плавные, управляемые текстом переходы между двумя исходными клипами, используя модель video diffusion LTX 2.3 и transition LoRA SYSTMS FLW. Группа MODELS загружает transformer-only основу LTX 2.3 через DiffusionModelLoaderKJ, соответствующий VAE через VAELoaderKJ и применяет FLW LoRA через LoraLoaderModelOnly, чтобы сместить модель в сторону естественных, «потоковых» смен планов. Промпты кодируются через CLIPTextEncode (опционально — авто-генерируются нодой Gemini), затем проходят через LTXVConditioning и LTXVAddGuide для управления содержимым и стилем перехода.
Под капотом рабочий процесс выделяет таймлайн в EmptyLTXVLatentVideo, управляет A/V латентными потоками через LTXVSeparateAVLatent и LTXVConcatAVLatent и локализует денойзинг в зоне стыка с помощью SolidMask и SetLatentNoiseMask. Сэмплинг выполняется SamplerCustomAdvanced с CFGGuider, KSamplerSelect, BasicScheduler и RandomNoise для воспроизводимости. После вывода VAEDecode восстанавливает кадры, а VHS_VideoCombine собирает их в финальное видео. LTXVCropGuides добавляет композиционные направляющие, чтобы удерживать объекты выровненными между планами и получать более чистый и правдоподобный морфинг.
Вопросы и ответы
Нет. Это опционально. Отключите её строковый вывод от CLIPTextEncode и введите свой промпт. Используйте шаблон: "FLW, [Action A] seamlessly transforms into [Action B], [details]".
Задайте лимиты загрузки кадров для Clip A и Clip B, затем установите общее число кадров в EmptyLTXVLatentVideo. Длина перехода = total frames − кадры Clip A − кадры Clip B.
Положите transformer-модель LTX 2.3 в models/diffusion_models, LoRA SYSTMS FLW — в models/loras, а VAE — в models/vae. Загрузите их через DiffusionModelLoaderKJ, LoraLoaderModelOnly и VAELoaderKJ соответственно.
Держите CFG scale умеренным (примерно 3–5), следите, чтобы объекты были похожим образом в кадре с помощью LTXVCropGuides, и ограничивайте сильный denoising областью передачи через SolidMask + SetLatentNoiseMask. Можно также слегка снизить разрешение или количество шагов, чтобы не «пережаривать» детали вне области перехода.