Spaces:
Runtime error
Runtime error
Update video_model.py
Browse files- video_model.py +2 -0
video_model.py
CHANGED
|
@@ -13,9 +13,11 @@ transformer = LTXVideoTransformer3DModel.from_single_file(
|
|
| 13 |
quantization_config=GGUFQuantizationConfig(compute_dtype=torch.bfloat16),
|
| 14 |
torch_dtype=torch.bfloat16,
|
| 15 |
)
|
|
|
|
| 16 |
t2v_pipe = LTXPipeline.from_pretrained(
|
| 17 |
"Lightricks/LTX-Video",
|
| 18 |
transformer=transformer,
|
|
|
|
| 19 |
torch_dtype=torch.bfloat16,
|
| 20 |
)
|
| 21 |
t2v_pipe.to(device)
|
|
|
|
| 13 |
quantization_config=GGUFQuantizationConfig(compute_dtype=torch.bfloat16),
|
| 14 |
torch_dtype=torch.bfloat16,
|
| 15 |
)
|
| 16 |
+
vae = AutoencoderKLLTXVideo.from_single_file("https://huggingface.co/city96/LTX-Video-gguf/blob/main/LTX-Video-VAE-BF16.safetensors", torch_dtype=torch.bfloat16)
|
| 17 |
t2v_pipe = LTXPipeline.from_pretrained(
|
| 18 |
"Lightricks/LTX-Video",
|
| 19 |
transformer=transformer,
|
| 20 |
+
vae=vae,
|
| 21 |
torch_dtype=torch.bfloat16,
|
| 22 |
)
|
| 23 |
t2v_pipe.to(device)
|