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.
python tools/analysis_tools/browse_dataset.py ${CONFIG} \
[--out-dir ${OUT_DIR}] \
[--not-show] \
[--show-interval ${SHOW_INTERVAL}]
E,g:
- Use
config
fileconfigs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py
to visualize the picture. The picture will pop up directly and be saved to the directorywork_dirs/browse_ dataset
at the same time:
python tools/analysis_tools/browse_dataset.py 'configs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py' \
--out-dir 'work_dirs/browse_dataset'
- Use
config
fileconfigs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py
to visualize the picture. The picture will pop up and display directly. Each picture lasts for10
seconds. At the same time, it will be saved to the directorywork_dirs/browse_ dataset
:
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
- Use
config
fileconfigs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py
to visualize the picture. The picture will pop up and display directly. Each picture lasts for10
seconds and the picture will not be saved:
python tools/analysis_tools/browse_dataset.py 'configs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py' \
--show-interval 10
- Use
config
fileconfigs/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 directorywork_dirs/browse_ dataset
:
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