No such file or directory: 'mmseg/utils/sampler/city_lbl2idx.pth'
fangli333 opened this issue · comments
hi, when i try to reproduce your work for retraining on cityscapes dataset. It seems like I still miss one checkpoint. Can you help me to tackle this problem? thank you!
the same question ? how to generate file of xx_lbl2idx.pth ?
Sorry for the confusion and inconvenience caused. In this work, we assume a uniform prior for class probabilities, but in practice, segmentation datasets like ADE20K, Cityscapes, and COCO-Stuff have long-tailed pixel distributions.
To address this issue, we propose a pixel balanced sampler to rebalance the pixel distribution as a uniform distribution. You can find the relevant code for the sampler in the following link:
Lines 42 to 95 in da1a518
Regarding the xx_lbl2idx.pth files, they contain the mapping of each label to pixel indexes within the corresponding label class.
We are currently working on releasing both the code for generating these files and the files themselves. Please stay tuned for updates.