Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_face_id_retinaface_box = _face_id_retinaface_boxes[0] IndexError: index 0 is out of bounds for axis 0 with size 0 How to fix it #420

Open
hqh1005 opened this issue Mar 23, 2024 · 2 comments

Comments

@hqh1005
Copy link

hqh1005 commented Mar 23, 2024

2024-03-23 14:39:20,551 - EasyPhoto - Please choose a user id.
Cleanup completed.
Loading weights [15012c538f] from E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\models\Stable-diffusion\realisticVisionV60B1_v51VAE.safetensors
2024-03-23 14:40:24,550 - EasyPhoto - ControlNet unit number: 4
2024-03-23 14:40:24,550 - EasyPhoto - Found 1 user id(s), but only 0 image prompt(s) for IP-Adapter Control. Use the reference image corresponding to the user instead.
2024-03-23 14:40:24,550 - EasyPhoto - Display score is forced to be true when IP-Adapter Control is enabled.
Loading ResNet ArcFace
2024-03-23 14:41:10,668 - EasyPhoto - Start templates and user_ids preprocess.
Loading VAE weights specified in settings: E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\models\VAE\vae-ft-mse-840000-ema-pruned.ckpt
Applying attention optimization: xformers... done.
VAE weights loaded.
Cleanup completed.
Loading VAE weights specified in settings: E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\models\VAE\animevae.pt
Applying attention optimization: xformers... done.
VAE weights loaded.
Traceback (most recent call last):
File "E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\python\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\python\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\python\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\python\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\python\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\python\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\python\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\python\lib\contextlib.py", line 79, in inner
return func(*args, **kwds)
File "E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\python\lib\contextlib.py", line 79, in inner
return func(*args, **kwds)
File "E:\sd\sd-webui-aki-v4.6.1\sd-webui-aki-v4.6.1\extensions\sd-webui-EasyPhoto\scripts\easyphoto_infer.py", line 1164, in easyphoto_infer_forward
_face_id_retinaface_box = _face_id_retinaface_boxes[0]
IndexError: index 0 is out of bounds for axis 0 with size 0
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。

@hqh1005 hqh1005 changed the title _face_id_retinaface_box = _face_id_retinaface_boxes[0] IndexError: index 0 is out of bounds for axis 0 with size 0 如何解决 _face_id_retinaface_box = _face_id_retinaface_boxes[0] IndexError: index 0 is out of bounds for axis 0 with size 0 How to fix it Mar 23, 2024
@wuziheng
Copy link
Collaborator

一般是没有检测到人脸,确认输入照片存在人脸。

@995kill
Copy link

995kill commented Sep 18, 2024

I also have this problem, how can this problem be solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants