Manjushri commited on
Commit
6671d29
·
verified ·
1 Parent(s): b729a41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ import random
15
  token = os.environ['HF_TOKEN']
16
  login(token=token)
17
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
18
- pipe = StableVideoDiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt-1-1", variant="fp16")
19
  pipe = pipe.to(device)
20
  #pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
21
  pipe.enable_xformers_memory_efficient_attention()
@@ -29,7 +29,7 @@ def sample(
29
  fps_id: int = 6,
30
  version: str = "svd_xt_1-1",
31
  cond_aug: float = 0.02,
32
- decoding_t: int = 2, # Number of frames decoded at a time! This eats most VRAM. Reduce if necessary.
33
  device: str = "cuda",
34
  output_folder: str = "outputs",):
35
 
 
15
  token = os.environ['HF_TOKEN']
16
  login(token=token)
17
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
18
+ pipe = StableVideoDiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt-1-1", variant="fp16", use_safetensors=True)
19
  pipe = pipe.to(device)
20
  #pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
21
  pipe.enable_xformers_memory_efficient_attention()
 
29
  fps_id: int = 6,
30
  version: str = "svd_xt_1-1",
31
  cond_aug: float = 0.02,
32
+ decoding_t: int = 1, # Number of frames decoded at a time! This eats most VRAM. Reduce if necessary.
33
  device: str = "cuda",
34
  output_folder: str = "outputs",):
35