ZhenglinZhou / Data_Augmentation_Zoo_for_Object_Detection

Includes: Learning data augmentation strategies for object detection | GridMask data augmentation | Augmentation for small object detection in Numpy. Use RetinaNet with ResNet-18 to test these methods on VOC and KITTI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-q3d_8t8e\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

dreamitpossible1 opened this issue · comments

0
1
2
3
4
5
6
7
8
Traceback (most recent call last):
File "D:/360极速浏览器下载/Data_Augmentation_Zoo_for_Object_Detection-master/Data_Augmentation_Zoo_for_Object_Detection-master/test_augmentation.py", line 32, in
sample = voc_train[i]
File "D:\360极速浏览器下载\Data_Augmentation_Zoo_for_Object_Detection-master\Data_Augmentation_Zoo_for_Object_Detection-master\prepare_data.py", line 147, in getitem
img = self.load_image(image_index)
File "D:\360极速浏览器下载\Data_Augmentation_Zoo_for_Object_Detection-master\Data_Augmentation_Zoo_for_Object_Detection-master\prepare_data.py", line 167, in load_image
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-q3d_8t8e\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

Uhm can you share the source code instead of showing error logs? Or at least, describe the way how it happened?