svishwa / crowdcount-mcnn

Single Image Crowd Counting via MCNN (Unofficial Implementation)
MIT License
499 stars 179 forks source link

Issues,test.py #17

Closed Dangwanli closed 6 years ago

Dangwanli commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Thank you very much. I have solved this problem.