Instructions to use kabachuha/ltx2-cakeify with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kabachuha/ltx2-cakeify 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-cakeify") prompt = "The video opens on a cake. A knife, held by a hand, is coming into frame and hovering over the cake. The knife then begins cutting into the cake to c4k3 cakeify it. As the knife slices the cake open, the inside of the cake is revealed to be cake with chocolate layers. The knife cuts through and the contents of the cake are revealed. Greek music playing in the background." 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
File size: 4,546 Bytes
ebfa33a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | ---
tags:
- text-to-image
- lora
- diffusers
- template:diffusion-lora
widget:
- output:
url: images/LTX2IV_00236-audio.webp
text: >-
The video opens on a cake. A knife, held by a hand, is coming into frame and
hovering over the cake. The knife then begins cutting into the cake to c4k3
cakeify it. As the knife slices the cake open, the inside of the cake is
revealed to be cake with chocolate layers. The knife cuts through and the
contents of the cake are revealed.
- output:
url: images/LTX2IV_00233-audio.webp
text: >-
The video opens on a cake. A knife, held by a hand, is coming into frame and
hovering over the cake. The knife then begins cutting into the cake to c4k3
cakeify it. As the knife slices the cake open, the inside of the cake is
revealed to be cake with chocolate layers. The knife cuts through and the
contents of the cake are revealed.
- output:
url: images/LTX2IV_00229-audio.webp
text: >-
The video opens on a cake. A knife, held by a hand, is coming into frame and
hovering over the cake. The knife then begins cutting into the cake to c4k3
cakeify it. As the knife slices the cake open, the inside of the cake is
revealed to be cake with chocolate layers. The knife cuts through and the
contents of the cake are revealed.
- output:
url: images/LTX2IV_00221-audio.webp
text: >-
The video opens on a cake. A knife, held by a hand, is coming into frame and
hovering over the cake. The knife then begins cutting into the cake to c4k3
cakeify it. As the knife slices the cake open, the inside of the cake is
revealed to be cake with chocolate layers. The knife cuts through and the
contents of the cake are revealed.
- output:
url: images/LTX2IV_00215-audio.webp
text: >-
The video opens on a cake. A knife, held by a hand, is coming into frame and
hovering over the cake. The knife then begins cutting into the cake to c4k3
cakeify it. As the knife slices the cake open, the inside of the cake is
revealed to be cake with chocolate layers. The knife cuts through and the
contents of the cake are revealed.
- output:
url: images/LTX2IV_00210-audio.webp
text: >-
The video opens on a cake. A knife, held by a hand, is coming into frame and
hovering over the cake. The knife then begins cutting into the cake to c4k3
cakeify it. As the knife slices the cake open, the inside of the cake is
revealed to be cake with chocolate layers. The knife cuts through and the
contents of the cake are revealed.
base_model: Lightricks/LTX-2
instance_prompt: c4k3 cakeify it
license: other
license_name: ltx-2-community-license-agreement
license_link: https://github.com/Lightricks/LTX-2/blob/main/LICENSE
---
# LTX-2 Cakeify
<Gallery />
## Model description
# LTX-2 Cakeify
We all know the potential of a model reveals itself only when LoRAs are trained. This is my *third* LTX-2 LoRA after [Hydraulic press](https://huggingface.co/kabachuha/ltx2-hydraulic-press) and [Inflate it](https://huggingface.co/kabachuha/ltx2-inflate-it). It follows the quest of porting some the *classic* VFX LoRAs to LTX-2 (which has sound!).
This is the second attempt, the first one was with only the attention being tuned. Here, following *inflate-it*, in addition to CREPA and TREAD, I also unfroze **FFN** ("ff.net.0.proj", "ff.net.2"), however I compensated for its parameter growth by lowerting the overall LoRA rank and the size gain was not that large compared to *H-press* (800 vs 640 Mb, and 1 Gb on *inflate*). The LoRA was trained in **2 hours 41 minutes** (1400 steps) on a single 5090, which I find is medium complexity, and the LoRA is pretty robust to various object types. If the object is stubborn, replace its name in the prompt with "cake" and it will be easier for the model to understand it.
The LoRA, in contrast to *H-press* or *inflate-it*, has been trained on **pure, real videos** of objects which have had turned out to be a cake after being halved.
The thing I love the most about LTX-2 is that you are able to set or generate any background music, be it a song or a greek style tune.
The SimpleTuner training and dataset configs are under config.json and ltx2-multiresolution-inflate-t2v.json respectively.
## Trigger words
You should use `c4k3 cakeify it` to trigger the image generation.
## Download model
[Download](/kabachuha/ltx2-cakeify/tree/main) them in the Files & versions tab.
|