Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import torch
|
|
3 |
import numpy as np
|
4 |
import modin.pandas as pd
|
5 |
from PIL import Image
|
6 |
-
from diffusers import
|
7 |
from huggingface_hub import login
|
8 |
import os
|
9 |
|
@@ -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 =
|
17 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
18 |
pipe.enable_xformers_memory_efficient_attention()
|
19 |
pipe = pipe.to(device)
|
|
|
3 |
import numpy as np
|
4 |
import modin.pandas as pd
|
5 |
from PIL import Image
|
6 |
+
from diffusers import DiffusionPipeline
|
7 |
from huggingface_hub import login
|
8 |
import os
|
9 |
|
|
|
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 = DiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid")
|
17 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
18 |
pipe.enable_xformers_memory_efficient_attention()
|
19 |
pipe = pipe.to(device)
|