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

Issues,test.py #17

Closed
Dangwanli opened this issue Dec 4, 2017 · 2 comments
Closed

Issues,test.py #17

Dangwanli opened this issue Dec 4, 2017 · 2 comments

Comments

@Dangwanli
Copy link

When trying to run test.py I get the following message:
File "C:\Users\GCZX\Desktop\crowdcount-mcnn-master\src\data_loader.py", line 35, in
init
img = cv2.resize(img,(wd_1,ht_1))

TypeError: integer argument expected, got float

@svishwa
Copy link
Owner

svishwa commented Dec 4, 2017

I am not really sure why this occurs, since wd_1 and ht_1 are supposed to int. Anyway, can you type cast these to variables to int and then resize - that must work.

@Dangwanli
Copy link
Author

Thank you very much. I have solved this problem.

@svishwa svishwa closed this as completed Dec 5, 2017
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