models icon indicating copy to clipboard operation
models copied to clipboard

[deeplab] regarding datasetdescriptor in segmentation_dataset.py

Open wenouyang opened this issue 8 years ago • 4 comments

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?

wenouyang avatar May 15 '18 14:05 wenouyang

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

tensorflowbutler avatar May 16 '18 01:05 tensorflowbutler

@wenouyang have you found a solution to deal with the problem? I think my failure may be the same problem.Thanks!

AnameZT avatar May 23 '18 08:05 AnameZT

Hi wenouyang,

In your use case, you could set ignore_label to any value except 0 and 1.

aquariusjay avatar May 23 '18 16:05 aquariusjay

@aquariusjay, thanks.

wenouyang avatar May 23 '18 18:05 wenouyang