multimodalart HF staff commited on
Commit
25c555b
·
verified ·
1 Parent(s): 180473b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -130,16 +130,7 @@ elapsed_time = et - st
130
  print('Loading VAE took: ', elapsed_time, 'seconds')
131
  st = time.time()
132
 
133
- base = "stabilityai/stable-diffusion-xl-base-1.0"
134
- repo = "ByteDance/SDXL-Lightning"
135
- ckpt = "sdxl_lightning_4step_unet.safetensors"
136
-
137
- # Load model.
138
- unet = UNet2DConditionModel.from_config(base, subfolder="unet").to("cuda", torch.float16)
139
- unet.load_state_dict(load_file(hf_hub_download(repo, ckpt), device="cuda"))
140
- pipe = StableDiffusionXLInstantIDImg2ImgPipeline.from_pretrained(base,
141
- unet=unet,
142
- vae=vae,
143
  controlnet=[identitynet, zoedepthnet],
144
  torch_dtype=torch.float16)
145
  pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, use_karras_sigmas=True)
 
130
  print('Loading VAE took: ', elapsed_time, 'seconds')
131
  st = time.time()
132
 
133
+ pipe = StableDiffusionXLInstantIDImg2ImgPipeline.from_pretrained("rubbrband/albedobaseXL_v21",
 
 
 
 
 
 
 
 
 
134
  controlnet=[identitynet, zoedepthnet],
135
  torch_dtype=torch.float16)
136
  pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, use_karras_sigmas=True)