Accounting for class_id in cityscapes dataset
See original GitHub issueHi,
In the dataset class for Cityscapes
, the classes with their meta-data is mentioned as a namedtuple. However, this information is not used anywhere. Especially for semantic segmenation, the train_id should be used to convert the pixel value (of the label image) to the training label.
Is this planned to be added anytime soon?
Edit: There seems to have been a commit that does something like this and that hasn’t been merged. https://github.com/pytorch/vision/pull/1025/commits/39a7a2fb6015792b6c32fd7ee3eeac9774f712a4
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Benchmark Suite - Cityscapes Dataset
scale features into account. For the second issue, we design an edge-aware loss which is effective in distinguishing the boundaries of object/stuff.
Read more >Partial results of the Cityscapes dataset - ResearchGate
Recently, Deep Neural Network (DNN) has been used to solve the problem of object detection and classification, road detection, and image semantic segmentation ......
Read more >Understanding Cityscapes: Efficient Urban Semantic Scene ...
Activity statistics for Cityscapes dataset over ... From a high-level perspective, classic methods for semantic label-.
Read more >A Beginner's guide to Deep Learning based Semantic ...
In the segmentation images, the pixel value should denote the class ID of the corresponding pixel. This is a common format used by...
Read more >Semantic Segmentation Tutorial - Analytics Vidhya
This is a classic example of semantic segmentation at work. ... Preparing the dataset: For training the DeepLab model on our custom dataset, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Seconding @TheCodez approach.
I’ve been doing something similar-ish (but keeping the ID logic within the transform) - also using dual transforms logic.
I would also recommend using a transform even when having some helper methods available. For example like here: https://github.com/TheCodez/pytorch-GoogLeNet-FCN/blob/master/googlenet_fcn/datasets/transforms/transforms.py#L32-L37