alexnasa commited on
Commit
6ca6d36
·
verified ·
1 Parent(s): 9685cf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -9
app.py CHANGED
@@ -228,8 +228,10 @@ jib_up_lora_path = get_hub_or_local_checkpoint(
228
  "ltx-2-19b-lora-camera-control-jib-up.safetensors",
229
  )
230
 
231
-
232
-
 
 
233
 
234
  # Load distilled LoRA as a regular LoRA
235
  loras = [
@@ -240,6 +242,7 @@ loras = [
240
  sd_ops=LTXV_LORA_COMFY_RENAMING_MAP,
241
  ),
242
  LoraPathStrengthAndSDOps(static_lora_path, DEFAULT_LORA_STRENGTH, LTXV_LORA_COMFY_RENAMING_MAP),
 
243
  LoraPathStrengthAndSDOps(dolly_in_lora_path, DEFAULT_LORA_STRENGTH, LTXV_LORA_COMFY_RENAMING_MAP),
244
  LoraPathStrengthAndSDOps(dolly_out_lora_path, DEFAULT_LORA_STRENGTH, LTXV_LORA_COMFY_RENAMING_MAP),
245
  LoraPathStrengthAndSDOps(dolly_left_lora_path, DEFAULT_LORA_STRENGTH, LTXV_LORA_COMFY_RENAMING_MAP),
@@ -252,12 +255,14 @@ loras = [
252
  RUNTIME_LORA_CHOICES = [
253
  ("No LoRA", -1),
254
  ("Static", 0),
255
- ("Zoom In", 1),
256
- ("Zoom Out", 2),
257
- ("Slide Left", 3),
258
- ("Slide Right", 4),
259
- ("Slide Down", 5),
260
- ("Slide Up", 6),
 
 
261
  ]
262
 
263
  # Initialize pipeline WITHOUT text encoder (gemma_root=None)
@@ -1349,7 +1354,7 @@ with gr.Blocks(title="LTX-2 Video Distilled 🎥🔈") as demo:
1349
  [
1350
  "supergirl.png",
1351
  "A fuzzy puppet superhero character resembling a female puppet with blonde hair and a blue superhero suit stands inside an icy cave made of frozen walls and icicles, she looks panicked and frantic, rapidly turning her head left and right and scanning the cave while waving her arms and shouting angrily and desperately, mouthing the words “where the hell is my dog,” her movements exaggerated and puppet-like with high energy and urgency, suddenly a second puppet dog bursts into frame from the side, jumping up excitedly and tackling her affectionately while licking her face repeatedly, she freezes in surprise and then breaks into relief and laughter as the dog continues licking her, the scene feels chaotic, comedic, and emotional with expressive puppet reactions, cinematic lighting, smooth camera motion, shallow depth of field, and high-quality puppet-style animation",
1352
- "No LoRA",
1353
  "16:9",
1354
  ],
1355
  [
 
228
  "ltx-2-19b-lora-camera-control-jib-up.safetensors",
229
  )
230
 
231
+ detailer_lora_path = get_hub_or_local_checkpoint(
232
+ "Lightricks/LTX-2-19b-IC-LoRA-Detailer",
233
+ "ltx-2-19b-ic-lora-detailer.safetensors",
234
+ )
235
 
236
  # Load distilled LoRA as a regular LoRA
237
  loras = [
 
242
  sd_ops=LTXV_LORA_COMFY_RENAMING_MAP,
243
  ),
244
  LoraPathStrengthAndSDOps(static_lora_path, DEFAULT_LORA_STRENGTH, LTXV_LORA_COMFY_RENAMING_MAP),
245
+ LoraPathStrengthAndSDOps(detailer_lora_path, DEFAULT_LORA_STRENGTH, LTXV_LORA_COMFY_RENAMING_MAP),
246
  LoraPathStrengthAndSDOps(dolly_in_lora_path, DEFAULT_LORA_STRENGTH, LTXV_LORA_COMFY_RENAMING_MAP),
247
  LoraPathStrengthAndSDOps(dolly_out_lora_path, DEFAULT_LORA_STRENGTH, LTXV_LORA_COMFY_RENAMING_MAP),
248
  LoraPathStrengthAndSDOps(dolly_left_lora_path, DEFAULT_LORA_STRENGTH, LTXV_LORA_COMFY_RENAMING_MAP),
 
255
  RUNTIME_LORA_CHOICES = [
256
  ("No LoRA", -1),
257
  ("Static", 0),
258
+ ("Detailer", 1),
259
+ ("Dolly In", 2),
260
+ ("Dolly Out", 3),
261
+ ("Dolly Left", 4),
262
+ ("Dolly Right", 5),
263
+ ("Jib Down", 6),
264
+ ("Jib Up", 7),
265
+
266
  ]
267
 
268
  # Initialize pipeline WITHOUT text encoder (gemma_root=None)
 
1354
  [
1355
  "supergirl.png",
1356
  "A fuzzy puppet superhero character resembling a female puppet with blonde hair and a blue superhero suit stands inside an icy cave made of frozen walls and icicles, she looks panicked and frantic, rapidly turning her head left and right and scanning the cave while waving her arms and shouting angrily and desperately, mouthing the words “where the hell is my dog,” her movements exaggerated and puppet-like with high energy and urgency, suddenly a second puppet dog bursts into frame from the side, jumping up excitedly and tackling her affectionately while licking her face repeatedly, she freezes in surprise and then breaks into relief and laughter as the dog continues licking her, the scene feels chaotic, comedic, and emotional with expressive puppet reactions, cinematic lighting, smooth camera motion, shallow depth of field, and high-quality puppet-style animation",
1357
+ "Detailer",
1358
  "16:9",
1359
  ],
1360
  [