Spaces:
Sleeping
Sleeping
amazonaws-sp
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def generate(
|
|
52 |
use_vae: bool = False,
|
53 |
use_lora: bool = False,
|
54 |
apply_refiner: bool = False,
|
55 |
-
model = '
|
56 |
vaecall = 'stabilityai/sd-vae-ft-mse',
|
57 |
lora = 'amazonaws-la/juliette',
|
58 |
lora_scale: float = 0.7,
|
@@ -60,7 +60,7 @@ def generate(
|
|
60 |
if torch.cuda.is_available():
|
61 |
|
62 |
if not use_vae:
|
63 |
-
pipe =
|
64 |
|
65 |
if use_vae:
|
66 |
vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
|
|
|
52 |
use_vae: bool = False,
|
53 |
use_lora: bool = False,
|
54 |
apply_refiner: bool = False,
|
55 |
+
model = 'cagliostrolab/animagine-xl-3.0',
|
56 |
vaecall = 'stabilityai/sd-vae-ft-mse',
|
57 |
lora = 'amazonaws-la/juliette',
|
58 |
lora_scale: float = 0.7,
|
|
|
60 |
if torch.cuda.is_available():
|
61 |
|
62 |
if not use_vae:
|
63 |
+
pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
64 |
|
65 |
if use_vae:
|
66 |
vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
|