mmsegmentation/mmseg/datasets
谢昕辰 53fe1ccf39
[Feature] Support MMSegInferencer (#2413)
## Motivation

Support `MMSegInferencer` for providing an easy and clean interface for
single or multiple images inferencing.

Ref: https://github.com/open-mmlab/mmengine/pull/773
https://github.com/open-mmlab/mmocr/pull/1608

## Modification

- mmseg/apis/mmseg_inferencer.py
- mmseg/visualization/local_visualizer.py
- demo/image_demo_with_inferencer.py

## Use cases (Optional)

Based on https://github.com/open-mmlab/mmengine/tree/inference

Add a new image inference demo with `MMSegInferencer`

- demo/image_demo_with_inferencer.py

```shell
python demo/image_demo_with_inferencer.py demo/demo.png fcn_r50-d8_4xb2-40k_cityscapes-512x1024
```

---------

Co-authored-by: MeowZheng <meowzheng@outlook.com>
2023-02-23 21:16:19 +08:00
..
transforms [Feature] Support MMSegInferencer (#2413) 2023-02-23 21:16:19 +08:00
__init__.py CodeCamp #139 [Feature] Support REFUGE dataset. (#2554) 2023-02-03 16:02:19 +08:00
ade.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +08:00
basesegdataset.py [FIx] Set default `backend_args` values to None (#2597) 2023-02-16 15:33:52 +08:00
chase_db1.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +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 [Feature] Add P1 DataTransform (#1843) 2022-08-19 20:50:01 +08:00
decathlon.py [Feature]Add Decathlon dataset (#2227) 2022-10-26 20:10:42 +08:00
drive.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +08:00
hrf.py [Fix]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +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
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
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]Add input argument for datasets (#2379) 2022-12-05 22:27:04 +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