Instructions to use starsfriday/LTX2-I2V-Smooth-LORA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use starsfriday/LTX2-I2V-Smooth-LORA with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Lightricks/LTX-2", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("starsfriday/LTX2-I2V-Smooth-LORA") prompt = "The video showcases a highly dynamic horizontal displacement costume display. The character's arms are raised above his head and crossed. As his hands fall, the new look swiftly sweeps from one side of the frame to the other. Through this rapid rotation and encireption, it gradually covers the original costume from top to bottom along the body. huanzhuang skillfully completed the gradient and replacement of the clothing in the high-speed flowing afterimage" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png") image = pipe(image=input_image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
Ctrl+K