mmsegmentation/mmseg/datasets
WRH c30d5060f1
[Fix] Robust mapping from image path to seg map path (#3091)
## Motivation

Suppose an image is named `jpg.jpg` and its corresponding segmap is
named `jpg.png`.
The original implementation will try to read segmap from `png.png` and
causes FileNotfoundError

## Modification

Only replace the suffix, instead of full string search and replacement. 

## BC-breaking (Optional)

Probably no. 

## Use cases (Optional)


## Checklist

1. Pre-commit or other linting tools are used to fix the potential lint
issues.
2. The modification is covered by complete unit tests. If not, please
add more unit test to ensure the correctness.
3. If the modification has potential influence on downstream projects,
this PR should be tested with downstream projects, like MMDet or
MMDet3D.
4. The documentation has been modified accordingly, like docstring or
example tutorials.

---------

Co-authored-by: 谢昕辰 <xiexinch@outlook.com>
Co-authored-by: CSH <40987381+csatsurnh@users.noreply.github.com>
2023-06-16 11:07:17 +08:00
..
transforms [Feature] Add GDAL backend and Support LEVIR-CD Dataset (#2903) 2023-05-08 20:09:33 +08:00
__init__.py [Feature] Support DSDL Dataset (#2925) 2023-05-10 16:54:42 +08:00
ade.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +08:00
basesegdataset.py [Fix] Robust mapping from image path to seg map path (#3091) 2023-06-16 11:07:17 +08:00
chase_db1.py [Fix] Fix binary C=1 focal loss & dataset fileio (#2935) 2023-04-23 15:02:18 +08:00
cityscapes.py [Fix] Fix repo based on refactoring standard (#1869) 2022-08-19 20:50:02 +08:00
coco_stuff.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +08:00
dark_zurich.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +08:00
dataset_wrappers.py [Typo] Change indexes to indices (#2747) 2023-03-14 23:56:40 +08:00
decathlon.py [Feature]Add Decathlon dataset (#2227) 2022-10-26 20:10:42 +08:00
drive.py [Fix] Fix binary C=1 focal loss & dataset fileio (#2935) 2023-04-23 15:02:18 +08:00
dsdl.py [Feature] Support DSDL Dataset (#2925) 2023-05-10 16:54:42 +08:00
hrf.py [Fix] Fix binary C=1 focal loss & dataset fileio (#2935) 2023-04-23 15:02:18 +08:00
isaid.py [Refactor] Refactor fileio (#2543) 2023-02-01 17:53:22 +08:00
isprs.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +08:00
levir.py [Feature] Add GDAL backend and Support LEVIR-CD Dataset (#2903) 2023-05-08 20:09:33 +08:00
lip.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +08:00
loveda.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +08:00
mapillary.py [Datasets] Add Mapillary Vistas Datasets to MMSeg Core Package. (#2576) 2023-03-15 14:44:38 +08:00
night_driving.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +08:00
pascal_context.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +08:00
potsdam.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +08:00
refuge.py CodeCamp #139 [Feature] Support REFUGE dataset. (#2554) 2023-02-03 16:02:19 +08:00
stare.py [Fix] Fix binary C=1 focal loss & dataset fileio (#2935) 2023-04-23 15:02:18 +08:00
synapse.py CodeCamp #140 [New] [Feature] Add synapse dataset and data augmentation in dev-1.x. (#2432) 2023-01-06 16:14:54 +08:00
voc.py [Refactor] Refactor fileio (#2543) 2023-02-01 17:53:22 +08:00