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
1.15 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
kabachuha's picture
kabachuha
upload workflow as json file for convenience
c5076bb verified 6 months ago
  • images
    Add 7 files 6 months ago
  • video_examples
    upload examples and config 6 months ago
  • .gitattributes
    2.68 kB
    upload examples and config 6 months ago
  • README.md
    5.79 kB
    correct image2video pipeline tag 6 months ago
  • ltx2-handsquish.safetensors
    1.11 GB
    xet
    Rename ltx2-squish-one-hand.safetensors to ltx2-handsquish.safetensors 6 months ago
  • training-config.json
    3.38 kB
    upload examples and config 6 months ago
  • workflow-handsquish.json
    56 kB
    upload workflow as json file for convenience 6 months ago