Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,13 +62,13 @@ def generate(
|
|
62 |
|
63 |
if not use_vae:
|
64 |
pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
65 |
-
sampler_class =
|
66 |
pipe.scheduler = sampler_class.from_config(pipe.scheduler.config)
|
67 |
|
68 |
if use_vae:
|
69 |
vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
|
70 |
pipe = DiffusionPipeline.from_pretrained(model, vae=vae, torch_dtype=torch.float16)
|
71 |
-
sampler_class =
|
72 |
pipe.scheduler = sampler_class.from_config(pipe.scheduler.config)
|
73 |
|
74 |
if use_lora:
|
|
|
62 |
|
63 |
if not use_vae:
|
64 |
pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
65 |
+
sampler_class = sampler
|
66 |
pipe.scheduler = sampler_class.from_config(pipe.scheduler.config)
|
67 |
|
68 |
if use_vae:
|
69 |
vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
|
70 |
pipe = DiffusionPipeline.from_pretrained(model, vae=vae, torch_dtype=torch.float16)
|
71 |
+
sampler_class = sampler
|
72 |
pipe.scheduler = sampler_class.from_config(pipe.scheduler.config)
|
73 |
|
74 |
if use_lora:
|