Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opencv not being able to get images #81

Open
Henrique-Liesenfeld-Krever opened this issue Oct 27, 2021 · 1 comment
Open

Opencv not being able to get images #81

Henrique-Liesenfeld-Krever opened this issue Oct 27, 2021 · 1 comment

Comments

@Henrique-Liesenfeld-Krever

File "/content/gdrive/My Drive/Project/semseg/util/dataset.py", line 64, in getitem
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB) # convert cv2 read image from BGR order to RGB order
cv2.error: OpenCV(4.5.4-dev) /tmp/pip-req-build-v2fnlv3a/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

aparently the code can't open the ADE dataset, i've placed on ade20k_pspnet50.yaml data_root the path to ADE Dataset, inside the folder with the following items "ADE (containing training models and validation), index_ade20k.mat, index_ade20k.pkl, objects.txt" what could I be doing wrong?

@ybbetter
Copy link

ybbetter commented Mar 7, 2022

Hi,
did you solve it? I meet the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants