semantic segmantation outputs only one class
Show older comments
Using the algorithm from here I try to detect polyps from pictures. Every things goes well until I try to predict an image, it doesen't matter if it's from the training set or test set, it only outputs one class (there are 2 possible cases: tissue and polyp). Any ideas what I'm missing?

These are original and the ground truth combined with the original(left).

And here is what the algorithm is giving. Basically it labels all the pixels as tissue.
Accepted Answer
More Answers (1)
Sai Bhargav Avula
on 14 May 2020
1 vote
Hi,
Adding to Ryan Comeau answers, I want to add the things like
By looking at the result I think the issue might be vanishing gradients. Check for that and the loss values.
To use segmentation the data needs a bit of preprocessing for better training.
Refer the following example which is closer to your case.
Hope this help!
1 Comment
Marius Bledea
on 19 May 2020
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!