RockyXu66 / Faster_RCNN_for_Open_Images_Dataset_Keras

Faster R-CNN for Open Images Dataset by Keras
473 stars 339 forks source link

None type error with shape at get_path function #86

Open Deepthi-Kairali opened 3 years ago

shankarnagj commented 2 years ago

try this code

import numpy as np import cv2

img is in BGR format if the underlying image is a color image

img = cv2.imdecode(np.fromfile(im_path, dtype=np.uint8), cv2.IMREAD_UNCHANGED)

inplace of img = cv2.imread(filename)