-
Notifications
You must be signed in to change notification settings - Fork 30
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
Comments
I have the same problem. |
I faced with the same issue and solved with converting the mask files from grayscale to RGBA. Here is the imagemagick batch convert that I used:
|
Thanks for your help! I will try it.
…------------------ 原始邮件 ------------------
发件人: "fatih ergin"<[email protected]>;
发送时间: 2019年12月15日(星期天) 晚上11:00
收件人: "Cheng-Lin-Li/SegCaps"<[email protected]>;
抄送: "T_optimus"<[email protected]>; "Comment"<[email protected]>;
主题: Re: [Cheng-Lin-Li/SegCaps] Can not load images and masks (#16)
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
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: