Spaces:
Runtime error
Runtime error
Use an available model
#1
by
Fabrice-TIERCELIN
- opened
app.py
CHANGED
@@ -16,7 +16,7 @@ from huggingface_hub import hf_hub_download
|
|
16 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
17 |
torch.cuda.max_memory_allocated(device=device)
|
18 |
torch.cuda.empty_cache()
|
19 |
-
pipe = StableVideoDiffusionPipeline.from_pretrained("
|
20 |
pipe.to("cuda")
|
21 |
pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
22 |
#pipe.vae = torch.compile(pipe.vae, mode="reduce-overhead", fullgraph=True)
|
|
|
16 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
17 |
torch.cuda.max_memory_allocated(device=device)
|
18 |
torch.cuda.empty_cache()
|
19 |
+
pipe = StableVideoDiffusionPipeline.from_pretrained("vdo/stable-video-diffusion-img2vid-xt-1-1", torch_dtype=torch.float16, use_safetensors=True, variant="fp16" )
|
20 |
pipe.to("cuda")
|
21 |
pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
22 |
#pipe.vae = torch.compile(pipe.vae, mode="reduce-overhead", fullgraph=True)
|