IndexError: too many indices for array
See original GitHub issuewhen I suppose my image to demo.py ,this happens
To use the future default and silence this warning we advise to pass
rcond=None, to keep using the old, explicitly pass
rcond=-1. k,_,_,_ = np.linalg.lstsq(A,b) Traceback (most recent call last): File "demo.py", line 76, in <module> demo() File "demo.py", line 55, in demo input_img,lm_new,transform_params = Preprocess(img,lm,lm3D) File "C:\Users\Utente\Desktop\1x\Deep3DFaceReconstruction-master\preprocess_img.py", line 65, in Preprocess img_new,lm_new = process_img(img,lm,t,s) File "C:\Users\Utente\Desktop\1x\Deep3DFaceReconstruction-master\preprocess_img.py", line 46, in process_img img = img[:,:,::-1] IndexError: too many indices for array
matteo.txt
this is the txt input file .
why returns this error?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top GitHub Comments
I had exactly this problem when running the demo. The problem went away when I updated the version of Pillow from 3.1.2 to 4.1.0. My version of numpy is 1.13.3.
Hope that helps someone.
This is strange. Did you run the demo successfully with the image provided in the repository?