Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
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
|
|
|
|
|
|
|
|
|
|
| 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(
|