[deeplab] regarding datasetdescriptor in segmentation_dataset.py
In the segmentation_dataset.py, there is a code segment to describe the data sets
_ADE20K_INFORMATION = DatasetDescriptor(
splits_to_sizes = {
'train': 20210, # num of samples in images/training
'val': 2000, # num of samples in images/validation
},
num_classes=150,
ignore_label=255,
)
If my dataset only has two classes, labeled as0and 1, and there is no ignore-label, how to set up the ignore_label value? just any value except 0 or 1?
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce
@wenouyang have you found a solution to deal with the problem? I think my failure may be the same problem.Thanks!
Hi wenouyang,
In your use case, you could set ignore_label to any value except 0 and 1.
@aquariusjay, thanks.