Manjushri commited on
Commit
d310f4f
·
verified ·
1 Parent(s): 0a058f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ from huggingface_hub import hf_hub_download
17
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
18
  torch.cuda.max_memory_allocated(device=device)
19
  torch.cuda.empty_cache()
20
- pipe = StableVideoDiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt-1-1")
21
  pipe.to("cuda")
22
  #pipe.enable_xformers_memory_efficient_attention()
23
  pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
 
17
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
18
  torch.cuda.max_memory_allocated(device=device)
19
  torch.cuda.empty_cache()
20
+ pipe = StableVideoDiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt-1-1", torch_dtype=torch.float16, use_safetensors=True, variant="fp16" )
21
  pipe.to("cuda")
22
  #pipe.enable_xformers_memory_efficient_attention()
23
  pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)