mmsegmentation/tests
zoulinxin 72e20a8854
[Feature] remote sensing inference (#3131)
## Motivation

Supports inference for ultra-large-scale remote sensing images.

## Modification

Add RSImageInference.py in demo.

## Use cases

Taking the inference of Vaihingen dataset images using PSPNet as an
example, the following settings are required:

**img**: Specify the path of the image.
**model**: Provide the configuration file for the model.
**checkpoint**: Specify the weight file for the model.
**out**: Set the output path for the results.
**batch_size**: Determine the batch size used during inference.
**win_size**: Specify the width and height(512x512) of the sliding
window.
**stride**: Set the stride(400x400) for sliding the window.
**thread(default: 1)**: Specify the number of threads to be used for
inference.
**Inference device (default: cuda:0)**: Specify the device for inference
(e.g., cuda:0 for CPU).

```shell
python demo/rs_image_inference.py demo/demo.png projects/pp_mobileseg/configs/pp_mobileseg/pp_mobileseg_mobilenetv3_2x16_80k_ade20k_512x512_tiny.py pp_mobileseg_mobilenetv3_2xb16_3rdparty-tiny_512x512-ade20k-a351ebf5.pth --batch-size 8 --device cpu --thread 2
```

---------

Co-authored-by: xiexinch <xiexinch@outlook.com>
2023-08-31 12:44:46 +08:00
..
data [Feature] Support NYU depth estimation dataset (#3269) 2023-08-17 11:39:44 +08:00
test_apis [Feature] remote sensing inference (#3131) 2023-08-31 12:44:46 +08:00
test_datasets [Feature] Support NYU depth estimation dataset (#3269) 2023-08-17 11:39:44 +08:00
test_engine [Feature] Support auto import modules from registry. (#2481) 2023-02-23 20:33:17 +08:00
test_evaluation/test_metrics [Feature] Support depth metrics (#3297) 2023-08-31 12:02:19 +08:00
test_models [CodeCamp2023-526] Kullback-Leibler divergence Loss implementation (#3242) 2023-08-28 16:48:26 +08:00
test_structures [Fix]Remove modules from mmcv.runner and mmcv.utils (#1966) 2022-08-25 15:15:21 +08:00
test_utils [Feature] Add BioMedical data loading (#2176) 2022-10-18 16:30:08 +08:00
test_visualization [Enhancement]Add `out_file` in add_datasample to directly save image (#2090) 2022-09-20 15:23:13 +08:00
__init__.py
test_config.py [Feature] Add GDAL backend and Support LEVIR-CD Dataset (#2903) 2023-05-08 20:09:33 +08:00
test_digit_version.py
test_sampler.py