Cityscapes class level boundary labeling with improved one-hot
· 10 min read
Why
I'm working on some semantic segmentation related code, where I need to enhance segmentation accuracy on boundaries. Therefore, I tried to use boundary loss to assist model training. This article is my attempt and codes.
Our purpose is clear. In Cityscapes, we have indexed image that represents pixels of each class named gtFine_labelIds
. What we want is to generate class level boundary from gtFine_labelIds
so that we can use it to optimize boundary regions for specific class.