qubvel-org / segmentation_models.pytorch

Semantic segmentation models with 500+ pretrained convolutional and transformer-based backbones.
https://smp.readthedocs.io/
MIT License
9.52k stars 1.66k forks source link

cv2.error: (-215:Assertion failed) !_src.empty() in function 'cvtColor #597

Closed waspinator closed 2 years ago

waspinator commented 2 years ago

While running the "# train model for 40 epochs" block in cars segmentation (camvid).ipynb I get the following error:

cv2.error: OpenCV(4.5.5) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor

Is this a compatibility error with the version of openCV I have (4.5.5)? Is there a list of dependencies and their compatible versions listed somewhere?

waspinator commented 2 years ago

jupyter notebook accidentally saved a hidden checkpoint folder inside the image directory