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("
|
19 |
pipe = pipe.to(device)
|
20 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
21 |
pipe.enable_xformers_memory_efficient_attention()
|
|
|
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", 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()
|