Spaces:
Running
on
Zero
Running
on
Zero
amazonaws-la
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -59,8 +59,8 @@ def generate(
|
|
59 |
if torch.cuda.is_available():
|
60 |
|
61 |
if not use_vae:
|
62 |
-
|
63 |
-
|
64 |
|
65 |
if use_vae:
|
66 |
vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
|
|
|
59 |
if torch.cuda.is_available():
|
60 |
|
61 |
if not use_vae:
|
62 |
+
pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
63 |
+
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
64 |
|
65 |
if use_vae:
|
66 |
vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
|