-
Notifications
You must be signed in to change notification settings - Fork 15
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
image_and_masks contains black png images #2
Comments
Hi @hxngillani those are where the mask data are stored. They show up as black when you look at them because they only hold the class data for each pixel. So the only values in the file are AC295-final-project-JWI/lib/labelling.py Line 213 in 4f1831a
AC295-final-project-JWI/lib/labelling.py Lines 378 to 380 in 4f1831a
|
thanks you ianhi :) |
Hi, thank you for explaining this question. Would you please tell me, how you are storing the class indexes? Is it in the B value of the RGB color scheme? |
@MBelkhechine good question. They are actually stored as black and white images so the arrays have shape from skimage import io
arr = io.imread('data/image_and_masks/train_masks/train/0_159350906_z_-2.5.png')
print(arr.shape) |
Thank you for your prompt response. I had a closer look at the masks provided in the dataset and it seems that the class indexes are stored in all the RGB color space dimensions e.g. Pixels labelled as cell2 will have this tuple value rgb(2,2,2). |
why there are black .png images in mask folders ?
The text was updated successfully, but these errors were encountered: