对GID数据进行样本切片时的错误
Closed this issue · 0 comments
cll011 commented
0%| | 0/150 [00:00<?, ?it/s]
Traceback (most recent call last):
File "E:\1_Code\segmentation\rs-segment.pytorch-main\tools\make_gid5_256.py", line 123, in
split_single_image(img_path, dst_dir, split_size, overlap, val_rate)
File "E:\1_Code\segmentation\rs-segment.pytorch-main\tools\make_gid5_256.py", line 58, in split_single_image
rgb_label = cv2.cvtColor(bgr_label, cv2.COLOR_BGR2RGB)
cv2.error: OpenCV(3.4.11) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-0_aht1_w\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
路径已检查没问题,请UP主帮忙看一下