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

Can not load images and masks #16

Open
Nosherwan-Akram opened this issue Jul 23, 2019 · 3 comments
Open

Can not load images and masks #16

Nosherwan-Akram opened this issue Jul 23, 2019 · 3 comments

Comments

@Nosherwan-Akram
Copy link

Nosherwan-Akram commented Jul 23, 2019

Unable to load img or masks for 43
index 3 is out of bounds for axis 2 with size 3
Skipping file

INFO 2019-07-23 21:14:04,744:
path_to_np=data/np_files/404.npz
INFO 2019-07-23 21:14:04,744:
Pre-made numpy array not found for 404.
Creating now...
DEBUG 2019-07-23 21:14:04,744: STREAM b'IHDR' 16 13
DEBUG 2019-07-23 21:14:04,744: STREAM b'pHYs' 41 9
DEBUG 2019-07-23 21:14:04,744: STREAM b'IDAT' 62 8192

this error/bug keeps happening over and over and the training doesn't start please help me. The stuff after the dotted line is another thing that keeps happening over and over for all of the images and masks and yes I have in the data/imgs and data/masks folder

@tanchaozhen
Copy link

I have the same problem.
Have you solved it?

@fatihergin
Copy link

I faced with the same issue and solved with converting the mask files from grayscale to RGBA.
It looks like your mask files are RGB and should also be converted to RGBA.

Here is the imagemagick batch convert that I used:

mogrify -define png:format=png32 -type TrueColor data/masks/*.png

@tanchaozhen
Copy link

tanchaozhen commented Dec 16, 2019 via email

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

3 participants