Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,10 @@ from small_256_model import UNet as small_UNet
|
|
15 |
from big_1024_model import UNet as big_UNet
|
16 |
from CLIP import load as load_clip,load_vae,encode_prompt
|
17 |
from rich import print as rp
|
|
|
18 |
|
|
|
|
|
19 |
# Device configuration
|
20 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
21 |
big = False if device == torch.device('cpu') else True
|
|
|
15 |
from big_1024_model import UNet as big_UNet
|
16 |
from CLIP import load as load_clip,load_vae,encode_prompt
|
17 |
from rich import print as rp
|
18 |
+
from diffusers import AutoencoderKL
|
19 |
|
20 |
+
#url = "https://huggingface.co/stabilityai/sd-vae-ft-mse-original/blob/main/vae-ft-mse-840000-ema-pruned.safetensors" # can also be a local file
|
21 |
+
#model = AutoencoderKL.from_single_file(url)
|
22 |
# Device configuration
|
23 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
24 |
big = False if device == torch.device('cpu') else True
|