svishwa / crowdcount-mcnn

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

test.py : Error #28

Closed Tikam02 closed 6 years ago

Tikam02 commented 6 years ago

/ML/Crowd-count/crowdcount-mcnn$ python3 test.py Pre-loading the data. This may take a while... Traceback (most recent call last): File "test.py", line 41, in data_loader = ImageDataLoader(data_path, gt_path, shuffle=False, gt_downsample=True, pre_load=True) File "/home/tikam/ML/Crowd-count/crowdcount-mcnn/src/data_loader.py", line 35, in init img = cv2.resize(img,(wd_1,ht_1)) TypeError: integer argument expected, got float

xushengim commented 6 years ago

I mit the same problem. There are some differences between python 2.x and python 3.x . change / into // to get the int wd_1 and ht_1 in test.py.