Hello, I am new here and I have a question to ask.
I want to train a model with only one category.
What I MODIFIED
I expand my own data set based on the cityscapes data set format.
Modified configs/_base_/datasets/cityscapes.py to configs/_base_/datasets/cityscapes_custom.py
I used the deeplabv3 model for training and modified configs/_base_/models/deeplabv3_r50-d8.py to configs/_base_/models/deeplabv3_r50-d8_custom_single.py , where the contents of deeplabv3_r50-d8_custom_single.py are as follows:
Modify mmseg/datasets/cityscapes.py to mmseg/datasets/cityscapes_custom_single.py, the changed content is as follows:
CLASSES = ('error')
PALETTE = [[128, 64, 128]]
Add my data format and palette format in mmseg/core/evaluation/class_names.py to adapt to the evaluation script.
Annotate my data. The pixel value of the area that I don’t care about is 255. I only have one category, so the pixel value of my target area is 0.
What IS MY RESULT
decode.loss_seg and aux.loss_seg are always 0.
What IS MY QUESTION
1. Should I modify the corresponding loss function? And how?
2. Should I label the area I don’t care about as a pixel value of 255, and then label other backgrounds as another category,
so that my category is 2.(I tried, the model can be trained normally, but the effect is not good .)
Hello, I am new here and I have a question to ask.
I want to train a model with only one category.
What I MODIFIED
I expand my own data set based on the cityscapes data set format.
I used the deeplabv3 model for training and modified
configs/_base_/models/deeplabv3_r50-d8.py
toconfigs/_base_/models/deeplabv3_r50-d8_custom_single.py
, where the contents ofdeeplabv3_r50-d8_custom_single.py
are as follows:mmseg/datasets/cityscapes.py
tommseg/datasets/cityscapes_custom_single.py
, the changed content is as follows:Add my data format and palette format in
mmseg/core/evaluation/class_names.py
to adapt to the evaluation script.Annotate my data. The pixel value of the area that I don’t care about is 255. I only have one category, so the pixel value of my target area is 0.
What IS MY RESULT
What IS MY QUESTION
Looking forward to your reply. Thank you.