PeterL1n commited on
Commit
33a4306
1 Parent(s): 84c6537

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -19,9 +19,10 @@ opts = {
19
  "8 Steps" : ("sdxl_lightning_8step_unet.safetensors", 8),
20
  }
21
 
22
- step_loaded = 4
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)