mmsegmentation/tests/test_datasets
Junhwa Song cb2d8fe085
[Enhance] Support multi-band image for Mosaic (#2748)
## Modification

I changed the hardcoded 3 channel length to dynamic channel length in
`np.full` function arguments.
This modification enables `RandomMosaic` transform to support
multispectral image (e.g. RGB image with NIR band) or bi-temporal image
pairs for change detection task.

## 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.
2023-03-15 19:36:47 +08:00
..
test_dataset.py [Datasets] Add Mapillary Vistas Datasets to MMSeg Core Package. (#2576) 2023-03-15 14:44:38 +08:00
test_dataset_builder.py [Feature] Support auto import modules from registry. (#2481) 2023-02-23 20:33:17 +08:00
test_formatting.py [Fix] Format shape check (#2753) 2023-03-15 17:49:59 +08:00
test_loading.py [FIx] Set default `backend_args` values to None (#2597) 2023-02-16 15:33:52 +08:00
test_transform.py [Enhance] Support multi-band image for Mosaic (#2748) 2023-03-15 19:36:47 +08:00
test_tta.py [Refactor] Support TTA (#2184) 2022-12-30 22:52:07 +08:00