Update app.py
Browse files
app.py
CHANGED
|
@@ -18,9 +18,9 @@ from huggingface_hub import hf_hub_download
|
|
| 18 |
#gradio.helpers.CACHED_FOLDER = '/data/cache'
|
| 19 |
|
| 20 |
pipe = StableVideoDiffusionPipeline.from_pretrained(
|
| 21 |
-
"
|
| 22 |
)
|
| 23 |
-
pipe.to("
|
| 24 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
| 25 |
#pipe.vae = torch.compile(pipe.vae, mode="reduce-overhead", fullgraph=True)
|
| 26 |
|
|
|
|
| 18 |
#gradio.helpers.CACHED_FOLDER = '/data/cache'
|
| 19 |
|
| 20 |
pipe = StableVideoDiffusionPipeline.from_pretrained(
|
| 21 |
+
"stabilityai/stable-video-diffusion-img2vid", torch_dtype=torch.float16, variant="fp16"
|
| 22 |
)
|
| 23 |
+
pipe.to("cpu")
|
| 24 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
| 25 |
#pipe.vae = torch.compile(pipe.vae, mode="reduce-overhead", fullgraph=True)
|
| 26 |
|