Skip to content

Opencv not being able to get images #81

Open
@Henrique-Liesenfeld-Krever

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions