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

Error: axis 2 is out of bounds for array of dimension 1 #42

Open
NoahRe1 opened this issue Aug 13, 2022 · 0 comments
Open

Error: axis 2 is out of bounds for array of dimension 1 #42

NoahRe1 opened this issue Aug 13, 2022 · 0 comments

Comments

@NoahRe1
Copy link

NoahRe1 commented Aug 13, 2022

The label image will be read as NoneType when running this line:
mask = cv2.imread(os.path.join(root+'{}_mask.png').format(id), cv2.IMREAD_GRAYSCALE)
Maybe it should be changed like this:
mask = cv2.imread(os.path.join(root, '{}_mask.png').format(id), cv2.IMREAD_GRAYSCALE)

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

1 participant