lhoyer / DAFormer

[CVPR22] Official Implementation of DAFormer: Improving Network Architectures and Training Strategies for Domain-Adaptive Semantic Segmentation
Other
470 stars 93 forks source link

resizing to 1024,512 cityscape #72

Closed elhamAm closed 7 months ago

elhamAm commented 1 year ago

Thank you for your great work! where do you resize and how do you resize the semantic labels for cityscape to 1024, 512? As I understand since the labels are discrete the resizing should not involve any interpolation, right? So I was wondering how you do this.

VdaylightV commented 1 year ago

Hello, I find something in the code. In the class Resize in file mmseg/datasets/pipelines/transforms.py, the resizing of the label adopted the nearest interpolation mode in _resize_seg method of that class.