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 LTX2Pipeline
3from diffusers.pipelines.ltx2.export_utils import encode_video
4from diffusers.pipelines.ltx2.utils import DEFAULT_NEGATIVE_PROMPT
5
6pipe = LTX2Pipeline.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("Quantumbraid/ltx2-lora2", weight_name="lora_weights_step_02000.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 width=768, height=512, num_frames=49, frame_rate=25.0,
19 num_inference_steps=30, guidance_scale=4.0,
20 output_type="np", return_dict=False,
21)
22encode_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).