ayoolaolafenwa / PixelLib

Visit PixelLib's official documentation https://pixellib.readthedocs.io/en/latest/
MIT License
1.04k stars 267 forks source link

Semantic Segmentation with Ade20K #53

Open VZed opened 3 years ago

VZed commented 3 years ago

Many thanks for creating this library. I am fairly new to ML and I am trying to do semantic segmentation using the Ade20K dataset. I was able to obtain the segmented image, classes, and masks. For the project I am working on I would need to know the percentage of pixels that belong to each class. In my specific example, the image gets segmented in 12 classes. Is there a way to obtain what percentage of the pixels correspond to each of these 12 classes?

ayoolaolafenwa commented 3 years ago

Thank you @VZed. I am presently busy and I will reach back to you later on it.

VZed commented 3 years ago

Hi Ayoola, many thanks for your response. I appreciate it.

fmorenovr commented 3 years ago

Hey, @VZed I guess this post could help you. https://fmorenovr.medium.com/how-to-get-classes-and-masks-from-pixellab-ade20k-8c2f6cc98d3f

Regards.