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

Running the "python landmarkPredict.py predictImage testList.txt" error! #25

Open
getengqing opened this issue Apr 17, 2017 · 2 comments

Comments

@getengqing
Copy link

Traceback (most recent call last):
File "landmarkPredict.py", line 232, in
func(*sys.argv[2:])
File "landmarkPredict.py", line 201, in predictImage
colorface = getRGBTestPart(bbox,M_left,M_right,M_top,M_bottom,colorImage,vgg_height,vgg_width)
File "landmarkPredict.py", line 78, in getRGBTestPart
face=img[retiBBox[2]:retiBBox[3],retiBBox[0]:retiBBox[1],:]
TypeError: slice indices must be integers or None or have an index method

@qiexing
Copy link
Owner

qiexing commented Apr 18, 2017

@getengqing Maybe try to change the last line as img[int(retiBBox[2]):int(retiBBox[3]),int(retiBBox[0]):int(retiBBox[1]),:] ?

@getengqing
Copy link
Author

thanks! It is ok!

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

2 participants