Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from diffusers.utils import load_image, export_to_video
|
|
| 5 |
# Load the StableVideoDiffusionPipeline with optimizations for lower memory usage
|
| 6 |
pipe = StableVideoDiffusionPipeline.from_pretrained(
|
| 7 |
"stabilityai/stable-video-diffusion-img2vid-xt",
|
| 8 |
-
torch_dtype=torch.
|
| 9 |
low_cpu_mem_usage=True # Reduce CPU memory usage
|
| 10 |
)
|
| 11 |
pipe.enable_attention_slicing() # Enable memory-efficient attention
|
|
|
|
| 5 |
# Load the StableVideoDiffusionPipeline with optimizations for lower memory usage
|
| 6 |
pipe = StableVideoDiffusionPipeline.from_pretrained(
|
| 7 |
"stabilityai/stable-video-diffusion-img2vid-xt",
|
| 8 |
+
torch_dtype=torch.float32, # Use float32 since float16 is not supported on CPU
|
| 9 |
low_cpu_mem_usage=True # Reduce CPU memory usage
|
| 10 |
)
|
| 11 |
pipe.enable_attention_slicing() # Enable memory-efficient attention
|