sushann222 commited on
Commit
dead101
·
verified ·
1 Parent(s): 1ce57f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.float16, # Use float16 for lower memory usage
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