-
Notifications
You must be signed in to change notification settings - Fork 146
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: too many indices for array #1
Comments
@exgile, is this still an issue? |
I had the same problem using anaconda with python 3.5. |
i have installed pillow but have the same problem. have you change something in the script for use pillow instad of PIL? |
i use python 2.7.6 on bash ubuntu |
Now, I replace this line by scipy.misc.imresize(image,(IMAGE_H,IMAGE_W)). Actually, when I created this project two years ago, I was not familiar with python API for image processing, and I didn't know how to resize image. |
When i run main.py, it show some error
Traceback (most recent call last):
File "main.py", line 144, in
main()
File "main.py", line 112, in main
content_img = read_image(CONTENT_IMG)
File "main.py", line 96, in read_image
image = image[np.newaxis,:IMAGE_H,:IMAGE_W,:]
IndexError: too many indices for array
how do i fix it, Thx
The text was updated successfully, but these errors were encountered: