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

IndexError: index 0 is out of bounds for axis 0 with size 0` #28

Open
xz23333 opened this issue Jan 17, 2023 · 2 comments
Open

IndexError: index 0 is out of bounds for axis 0 with size 0` #28

xz23333 opened this issue Jan 17, 2023 · 2 comments

Comments

@xz23333
Copy link

xz23333 commented Jan 17, 2023

Hello, some input images have such an error, do you know why? Hope to get an answer, thank you very much!

Traceback (most recent call last):
File "run_ostec.py", line 98, in
main(args)
File "run_ostec.py", line 73, in main
final_uv, results_dict = operator.run(img, fitting, face_mask)
File "/data/code/OSTeC/core/operator.py", line 351, in run
face = self.get_tmesh(im, reconstruction_dict, face_mask)
File "/data/code/OSTeC/core/operator.py", line 207, in get_tmesh
im_masked = fill_UV(im_PIL2menpo(im_masked))
File "/data/code/OSTeC/utils/utils.py", line 132, in fill_UV
result = interp(np.ravel(xx[mask]), np.ravel(yy[mask]))
File "/data/anaconda3/envs/ostec/lib/python3.6/site-packages/scipy/interpolate/ndgriddata.py", line 79, in call
return self.values[i]
IndexError: index 0 is out of bounds for axis 0 with size 0

@Kelu007
Copy link

Kelu007 commented Apr 14, 2023

Hi, did you solve the problem?

@1164090024
Copy link

It seems a problem with facial detection, so I used the commented try/exception statement(try: # To avoid detection errors on large datasets) to solve the problem.

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