Spaces:
Runtime error
Runtime error
ameerazam08
commited on
Commit
β’
927b744
1
Parent(s):
4546757
Update app.py
Browse files
app.py
CHANGED
@@ -51,12 +51,11 @@ ckpt = "sdxl_lightning_4step_unet.safetensors" # Use the correct ckpt for your
|
|
51 |
|
52 |
# Load model.
|
53 |
unet = UNet2DConditionModel.from_config(base, subfolder="unet").to(device)
|
54 |
-
unet.load_state_dict(load_file(hf_hub_download(repo, ckpt)
|
55 |
pipe = StableDiffusionXLPipeline.from_pretrained(base, unet=unet).to(device)
|
56 |
pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing")
|
57 |
|
58 |
|
59 |
-
|
60 |
# Load resadapter
|
61 |
pipe.load_lora_weights(
|
62 |
hf_hub_download(
|
|
|
51 |
|
52 |
# Load model.
|
53 |
unet = UNet2DConditionModel.from_config(base, subfolder="unet").to(device)
|
54 |
+
unet.load_state_dict(load_file(hf_hub_download(repo, ckpt)))
|
55 |
pipe = StableDiffusionXLPipeline.from_pretrained(base, unet=unet).to(device)
|
56 |
pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing")
|
57 |
|
58 |
|
|
|
59 |
# Load resadapter
|
60 |
pipe.load_lora_weights(
|
61 |
hf_hub_download(
|