Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
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 |
|