Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -132,10 +132,16 @@ print('Loading VAE took: ', elapsed_time, 'seconds')
|
|
| 132 |
st = time.time()
|
| 133 |
|
| 134 |
#pipe = StableDiffusionXLInstantIDImg2ImgPipeline.from_pretrained("stablediffusionapi/albedobase-xl-v21",
|
| 135 |
-
pipe = StableDiffusionXLInstantIDImg2ImgPipeline.from_pretrained("frankjoshua/albedobaseXL_v21",
|
| 136 |
-
vae=vae,
|
| 137 |
-
controlnet=[identitynet, zoedepthnet],
|
| 138 |
-
torch_dtype=torch.float16)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, use_karras_sigmas=True)
|
| 140 |
pipe.load_ip_adapter_instantid(face_adapter)
|
| 141 |
pipe.set_ip_adapter_scale(0.8)
|
|
|
|
| 132 |
st = time.time()
|
| 133 |
|
| 134 |
#pipe = StableDiffusionXLInstantIDImg2ImgPipeline.from_pretrained("stablediffusionapi/albedobase-xl-v21",
|
| 135 |
+
#pipe = StableDiffusionXLInstantIDImg2ImgPipeline.from_pretrained("frankjoshua/albedobaseXL_v21",
|
| 136 |
+
# vae=vae,
|
| 137 |
+
# controlnet=[identitynet, zoedepthnet],
|
| 138 |
+
# torch_dtype=torch.float16)
|
| 139 |
+
|
| 140 |
+
pipe = StableDiffusionXLInstantIDImg2ImgPipeline.from_single_file(hf_hub_download(repo_id="Laxhar/noobai-XL-1.0", filename="NoobAI-XL-v1.0.safetensors"),
|
| 141 |
+
vae=vae,
|
| 142 |
+
controlnet=[identitynet, zoedepthnet],
|
| 143 |
+
torch_dtype=torch.float16)
|
| 144 |
+
|
| 145 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, use_karras_sigmas=True)
|
| 146 |
pipe.load_ip_adapter_instantid(face_adapter)
|
| 147 |
pipe.set_ip_adapter_scale(0.8)
|