How to use kabachuha/ltx2-eat 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("kabachuha/ltx2-eat") prompt = "Vivid colors. The video begins with a cartoon girl blowing a chewing gum balloon. Then a gigantic anime girl hand seizes the cartoon girl from below and tosses her into a gigantic mouth, which appeared to the right. The camera zooms out, showing the new anime girl chewing and fully swallowing the cartoon girl. Wet slurping sounds." 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")
The community tab is the place to discuss and collaborate with the HF community!