Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

kabachuha
/
ltx2-squish-one-hand

Image-to-Video
Diffusers
English
lora
template:diffusion-lora
Model card Files Files and versions
xet
Community

Instructions to use kabachuha/ltx2-squish-one-hand with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use kabachuha/ltx2-squish-one-hand 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", torch_dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("kabachuha/ltx2-squish-one-hand")
    
    prompt = "In the video, a miniature toy house is presented. A person's gigantic long right arm appears from the right, stretches all way to the toy house and grabs the miniature toy house from the right. The toy house is held in the person’s gigantic right hand in the distance. The person then presses on the toy house, causing a handsquish effect. The person keeps pressing up on the toy house, further showing the handsquish effect. In the end the person squishes and crushes the toy house into a mess."
    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 Settings
  • Draw Things
ltx2-squish-one-hand / video_examples
12 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
kabachuha's picture
kabachuha
upload examples and config
3ac3189 verified 6 months ago
  • 1-house.mp4
    1.84 MB
    xet
    upload examples and config 6 months ago
  • 2-girl.mp4
    1.93 MB
    xet
    upload examples and config 6 months ago
  • 3-vase.mp4
    1.89 MB
    xet
    upload examples and config 6 months ago
  • 4-comfy.mp4
    1.95 MB
    xet
    upload examples and config 6 months ago
  • 5-tank.mp4
    2.66 MB
    xet
    upload examples and config 6 months ago
  • 6-plane.mp4
    1.76 MB
    xet
    upload examples and config 6 months ago