Manjushri commited on
Commit
e3f976b
1 Parent(s): 39d3980

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,10 +18,10 @@ device = 'cuda' if torch.cuda.is_available() else 'cpu'
18
  torch.cuda.max_memory_allocated(device=device)
19
  torch.cuda.empty_cache()
20
  pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt-1-1")
21
- #pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
22
 
23
- pipe.enable_xformers_memory_efficient_attention()
24
- pipe = pipe.to(device)
25
  torch.cuda.empty_cache()
26
 
27
  max_64_bit_int = 2**63 - 1
 
18
  torch.cuda.max_memory_allocated(device=device)
19
  torch.cuda.empty_cache()
20
  pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt-1-1")
21
+ pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
22
 
23
+ #pipe.enable_xformers_memory_efficient_attention()
24
+ #pipe = pipe.to(device)
25
  torch.cuda.empty_cache()
26
 
27
  max_64_bit_int = 2**63 - 1