experiencor / keras-yolo2

Easy training on custom dataset. Various backends (MobileNet and SqueezeNet) supported. A YOLO demo to detect raccoon run entirely in brower is accessible at https://git.io/vF7vI (not on Windows).
MIT License
1.73k stars 787 forks source link

resized = cv2.resize((image[:,:,::-1]/255.), (new_w, new_h)) TypeError: integer argument expected, got float #430

Closed laurasels closed 4 years ago

laurasels commented 4 years ago

When I try to predict an image: python yolo3_detect.py -w yolov3.weights -I dog.jpg

I got this error:

File "yolo3_detect.py", line 270, in preprocess_input resized = cv2.resize((image[:,:,::-1]/255.), (new_w, new_h)) TypeError: integer argument expected, got float

Can anybody help to fix this problem?