Closed laurasels closed 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?
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?