mirror of https://github.com/open-mmlab/mmyolo.git
43 lines
2.3 KiB
Markdown
43 lines
2.3 KiB
Markdown
# Visualize Datasets
|
||
|
||
`tools/analysis_tools/browse_dataset.py` helps the user to browse a detection dataset (both images and bounding box annotations) visually, or save the image to a designated directory.
|
||
|
||
```shell
|
||
python tools/analysis_tools/browse_dataset.py ${CONFIG} \
|
||
[--out-dir ${OUT_DIR}] \
|
||
[--not-show] \
|
||
[--show-interval ${SHOW_INTERVAL}]
|
||
```
|
||
|
||
E,g:
|
||
|
||
1. Use `config` file `configs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py` to visualize the picture. The picture will pop up directly and be saved to the directory `work_dirs/browse_ dataset` at the same time:
|
||
|
||
```shell
|
||
python tools/analysis_tools/browse_dataset.py 'configs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py' \
|
||
--out-dir 'work_dirs/browse_dataset'
|
||
```
|
||
|
||
2. Use `config` file `configs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py` to visualize the picture. The picture will pop up and display directly. Each picture lasts for `10` seconds. At the same time, it will be saved to the directory `work_dirs/browse_ dataset`:
|
||
|
||
```shell
|
||
python tools/analysis_tools/browse_dataset.py 'configs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py' \
|
||
--out-dir 'work_dirs/browse_dataset' \
|
||
--show-interval 10
|
||
```
|
||
|
||
3. Use `config` file `configs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py` to visualize the picture. The picture will pop up and display directly. Each picture lasts for `10` seconds and the picture will not be saved:
|
||
|
||
```shell
|
||
python tools/analysis_tools/browse_dataset.py 'configs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py' \
|
||
--show-interval 10
|
||
```
|
||
|
||
4. Use `config` file `configs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py` to visualize the picture. The picture will not pop up directly, but only saved to the directory `work_dirs/browse_ dataset`:
|
||
|
||
```shell
|
||
python tools/analysis_tools/browse_dataset.py 'configs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py' \
|
||
--out-dir 'work_dirs/browse_dataset' \
|
||
--not-show
|
||
```
|