Closed YoungjaeDev closed 8 months ago
you should add ignore_index in train_dataset, val_dataset and type: CrossEntropyLoss. However, it is generally not recommended to do so, which may cause errors during backwards. You can change the ignore_index to 255 in your mask labels. If datasets don't have number 3 in labelling, there is no problem with training, but the results may become worse. Is it still correct to leave num_classes at 5? -- Yes.
@Sunting78 If datasets don't have number 3 in labelling, there is no problem with training, but the results may become worse. Following this question, would it be equally bad performance if number 3 changed to 255?
I'm a little confused. You say that datasets don't have number 3 in labelling, so how to change it to 255?
Hello, @Sunting78, I think you can help me with my issue over here. Could you assist me? Thank you.
问题确认 Search before asking
请提出你的问题 Please ask your question
Hello Using
the Maritime Semantic Segmentation Training Dataset
at https://www.vicos.si/resources/mastr1325/ , I trained and even infereced for Custom Dataset. The training/val was divided into 7:3Below is the reference yml And the labeling is as follows
Obstacles and environment = 0 (value zero) Water = 1 (value one) Sky = 2 (value two) Ignore region / unknown category = 4 (value four)
But what I'm going to focus on in the question is how to set up
ignore_index
Additionally
Thank you