dagloop5 commited on
Commit
83677e6
Β·
verified Β·
1 Parent(s): 4def770

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -291,7 +291,7 @@ class LTX23DistilledA2VPipeline:
291
  )
292
 
293
  torch.cuda.synchronize()
294
- cleanup_memory()
295
 
296
  # ── Upscaling ──
297
  upscaled_video_latent = upsample_video(
@@ -327,7 +327,7 @@ class LTX23DistilledA2VPipeline:
327
  )
328
 
329
  torch.cuda.synchronize()
330
- cleanup_memory()
331
 
332
  # ── Decode both video and audio ──
333
  decoded_video = vae_decode_video(
@@ -793,7 +793,10 @@ def generate_video(
793
  temp_last_path = Path(last_image)
794
  images.append(ImageConditioningInput(path=str(temp_last_path), frame_idx=num_frames - 1, strength=1.0))
795
 
796
- tiling_config = TilingConfig.default()
 
 
 
797
  video_chunks_number = get_video_chunks_number(num_frames, tiling_config)
798
 
799
  video_guider_params = MultiModalGuiderParams(
 
291
  )
292
 
293
  torch.cuda.synchronize()
294
+ # cleanup_memory()
295
 
296
  # ── Upscaling ──
297
  upscaled_video_latent = upsample_video(
 
327
  )
328
 
329
  torch.cuda.synchronize()
330
+ # cleanup_memory()
331
 
332
  # ── Decode both video and audio ──
333
  decoded_video = vae_decode_video(
 
793
  temp_last_path = Path(last_image)
794
  images.append(ImageConditioningInput(path=str(temp_last_path), frame_idx=num_frames - 1, strength=1.0))
795
 
796
+ tiling_config = TilingConfig(
797
+ spatial_config=None, # Disable spatial tiling β€” decode full HΓ—W at once
798
+ temporal_config=None, # Disable temporal tiling β€” decode all frames at once
799
+ )
800
  video_chunks_number = get_video_chunks_number(num_frames, tiling_config)
801
 
802
  video_guider_params = MultiModalGuiderParams(