Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ login(token=token)
|
|
13 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
14 |
torch.cuda.max_memory_allocated(device=device)
|
15 |
torch.cuda.empty_cache()
|
16 |
-
pipe = StableVideoDiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt-1-1", variant="fp16",
|
17 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
18 |
|
19 |
pipe.enable_xformers_memory_efficient_attention()
|
|
|
13 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
14 |
torch.cuda.max_memory_allocated(device=device)
|
15 |
torch.cuda.empty_cache()
|
16 |
+
pipe = StableVideoDiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt-1-1", variant="fp16", use_safetensors=True)
|
17 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
18 |
|
19 |
pipe.enable_xformers_memory_efficient_attention()
|