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("
|
17 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
18 |
|
19 |
pipe.enable_xformers_memory_efficient_attention()
|
@@ -21,6 +21,7 @@ pipe = pipe.to(device)
|
|
21 |
torch.cuda.empty_cache()
|
22 |
|
23 |
|
|
|
24 |
def genie(src_image):
|
25 |
torch.cuda.max_memory_allocated(device=device)
|
26 |
torch.cuda.empty_cache()
|
|
|
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", 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()
|
|
|
21 |
torch.cuda.empty_cache()
|
22 |
|
23 |
|
24 |
+
|
25 |
def genie(src_image):
|
26 |
torch.cuda.max_memory_allocated(device=device)
|
27 |
torch.cuda.empty_cache()
|