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

size_index is missing for preprocess_test function #51

Closed
aelnouby opened this issue Jan 22, 2018 · 5 comments
Closed

size_index is missing for preprocess_test function #51

aelnouby opened this issue Jan 22, 2018 · 5 comments

Comments

@aelnouby
Copy link

When trying the demo, I found that preprocess_test has two arguments (data, size_index) while in the demo.py file, only one argument is passed yolo_utils.preprocess_test((image, None, cfg.inp_size))[0] , how to fix this ?

Thanks.

@lucheng07082221
Copy link

I got the same problem

@CompilerBian
Copy link

Try

im_data = np.expand_dims(
        yolo_utils.preprocess_test((image, None, cfg.inp_size), 0)[0], 0)

Then comment this line in preprocess_test

#inp_size = inp_size[size_index]

@lucheng07082221
Copy link

@CompilerBian thank you very much ,this problem had solved

@nijkah
Copy link

nijkah commented Feb 7, 2018

@CompilerBian I did it.(editing demo.py and utils/yolo.py) But I get this error.

TypeError: 'numpy.int64' object is not iterable

Same error occurs when removing comment sign on the line you mentioned

@longcw
Copy link
Owner

longcw commented Mar 6, 2018

Sorry for introduced this bug in the last PR.
I just fixed this in the master branch: dfdd822

@longcw longcw closed this as completed Mar 6, 2018
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

5 participants