Update packages/ltx-pipelines/src/ltx_pipelines/keyframe_interpolation.py
Browse files
packages/ltx-pipelines/src/ltx_pipelines/keyframe_interpolation.py
CHANGED
|
@@ -159,7 +159,7 @@ class KeyframeInterpolationPipeline:
|
|
| 159 |
)
|
| 160 |
|
| 161 |
torch.cuda.synchronize()
|
| 162 |
-
|
| 163 |
utils.cleanup_memory()
|
| 164 |
|
| 165 |
# Stage 2: Upsample and refine the video at higher resolution with distilled LORA.
|
|
@@ -218,8 +218,8 @@ class KeyframeInterpolationPipeline:
|
|
| 218 |
)
|
| 219 |
|
| 220 |
torch.cuda.synchronize()
|
| 221 |
-
|
| 222 |
-
|
| 223 |
utils.cleanup_memory()
|
| 224 |
|
| 225 |
decoded_video = vae_decode_video(video_state, self.stage_2_model_ledger.video_decoder(), tiling_config)
|
|
|
|
| 159 |
)
|
| 160 |
|
| 161 |
torch.cuda.synchronize()
|
| 162 |
+
del transformer
|
| 163 |
utils.cleanup_memory()
|
| 164 |
|
| 165 |
# Stage 2: Upsample and refine the video at higher resolution with distilled LORA.
|
|
|
|
| 218 |
)
|
| 219 |
|
| 220 |
torch.cuda.synchronize()
|
| 221 |
+
del transformer
|
| 222 |
+
del video_encoder
|
| 223 |
utils.cleanup_memory()
|
| 224 |
|
| 225 |
decoded_video = vae_decode_video(video_state, self.stage_2_model_ledger.video_decoder(), tiling_config)
|