Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,9 +19,10 @@ opts = {
|
|
| 19 |
"8 Steps" : ("sdxl_lightning_8step_unet.safetensors", 8),
|
| 20 |
}
|
| 21 |
|
| 22 |
-
step_loaded =
|
| 23 |
-
unet = UNet2DConditionModel.from_config(base, subfolder="unet").to(device, dtype)
|
| 24 |
-
unet.load_state_dict(load_file(hf_hub_download(repo, opts["4 Steps"][0]), device=device))
|
|
|
|
| 25 |
pipe = StableDiffusionXLPipeline.from_pretrained(base, unet=unet, torch_dtype=dtype, variant="fp16").to(device)
|
| 26 |
|
| 27 |
@spaces.GPU(enable_queue=True)
|
|
|
|
| 19 |
"8 Steps" : ("sdxl_lightning_8step_unet.safetensors", 8),
|
| 20 |
}
|
| 21 |
|
| 22 |
+
step_loaded = None
|
| 23 |
+
# unet = UNet2DConditionModel.from_config(base, subfolder="unet").to(device, dtype)
|
| 24 |
+
# unet.load_state_dict(load_file(hf_hub_download(repo, opts["4 Steps"][0]), device=device))
|
| 25 |
+
unet = None
|
| 26 |
pipe = StableDiffusionXLPipeline.from_pretrained(base, unet=unet, torch_dtype=dtype, variant="fp16").to(device)
|
| 27 |
|
| 28 |
@spaces.GPU(enable_queue=True)
|