Views
No views yet
ltx-2.3-22b-dev.safetensors on custom data.ltx-2.3-22b-dev.safetensorsLTX-2.3 support is currently on the diffusersmainbranch:pip install git+https://github.com/huggingface/diffusers.git
1import torch
2from diffusers import LTX2InContextPipeline
3from diffusers.pipelines.ltx2.export_utils import encode_video
4from diffusers.pipelines.ltx2.utils import DEFAULT_NEGATIVE_PROMPT
5
6pipe = LTX2InContextPipeline.from_pretrained(
7 "diffusers/LTX-2.3-Diffusers", torch_dtype=torch.bfloat16
8)
9pipe.enable_model_cpu_offload()
10
11# Load this LoRA
12pipe.load_lora_weights("linoyts/ltx2.3-ic-lora-ingredients-multishot", weight_name="lora_weights_step_02500.safetensors", adapter_name="lora")
13pipe.set_adapters("lora", 1.0)
14
15video, audio = pipe(
16 prompt="<your prompt>",
17 negative_prompt=DEFAULT_NEGATIVE_PROMPT,
18 # IC-LoRA is reference-conditioned — pass your control video via reference_conditions:
19 # reference_conditions=[...], # see the LTX-2 diffusers docs for the condition object
20 width=768, height=512, num_frames=49, frame_rate=25.0,
21 num_inference_steps=30, guidance_scale=4.0,
22 output_type="np", return_dict=False,
23)
24encode_video(video[0], fps=25.0, output_path="output.mp4").safetensors file) to the models/loras folder in your ComfyUI installation.ltx-2.3-22b-dev.safetensors).