Spaces:
Paused
Paused
Update skyreelsinfer/pipelines/pipeline_skyreels_video.py
Browse files
skyreelsinfer/pipelines/pipeline_skyreels_video.py
CHANGED
|
@@ -14,7 +14,7 @@ from diffusers.pipelines.hunyuan_video.pipeline_hunyuan_video import MultiPipeli
|
|
| 14 |
from diffusers.pipelines.hunyuan_video.pipeline_hunyuan_video import PipelineCallback
|
| 15 |
from diffusers.pipelines.hunyuan_video.pipeline_hunyuan_video import retrieve_timesteps
|
| 16 |
from PIL import Image
|
| 17 |
-
import gc
|
| 18 |
|
| 19 |
def resizecrop(image, th, tw):
|
| 20 |
w, h = image.size
|
|
@@ -338,7 +338,7 @@ class SkyreelsVideoPipeline(HunyuanVideoPipeline):
|
|
| 338 |
|
| 339 |
if hasattr(self, "text_encoder_to_cpu"):
|
| 340 |
self.text_encoder_to_cpu()
|
| 341 |
-
pipe.text_encoder.to("cpu")
|
| 342 |
#pipe.vae.to("cpu")
|
| 343 |
#torch.cuda.empty_cache()
|
| 344 |
|
|
|
|
| 14 |
from diffusers.pipelines.hunyuan_video.pipeline_hunyuan_video import PipelineCallback
|
| 15 |
from diffusers.pipelines.hunyuan_video.pipeline_hunyuan_video import retrieve_timesteps
|
| 16 |
from PIL import Image
|
| 17 |
+
#import gc
|
| 18 |
|
| 19 |
def resizecrop(image, th, tw):
|
| 20 |
w, h = image.size
|
|
|
|
| 338 |
|
| 339 |
if hasattr(self, "text_encoder_to_cpu"):
|
| 340 |
self.text_encoder_to_cpu()
|
| 341 |
+
#pipe.text_encoder.to("cpu")
|
| 342 |
#pipe.vae.to("cpu")
|
| 343 |
#torch.cuda.empty_cache()
|
| 344 |
|