From 78fd0776571589a2a85b9245b15798497ef104d3 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 22 Apr 2021 12:10:26 +0200 Subject: [PATCH] VisDrone2019-DET Dataset Auto-Download (#2882) * VisDrone Dataset Auto-Download * add visdrone.yaml * cleanup * add VisDrone2019-DET-test-dev * cleanup VOC --- data/argoverse_hd.yaml | 2 +- data/coco.yaml | 2 +- data/coco128.yaml | 2 +- data/scripts/get_argoverse_hd.sh | 2 +- data/scripts/get_coco.sh | 2 +- data/scripts/get_voc.sh | 111 ++++++++++++------------------- data/visdrone.yaml | 65 ++++++++++++++++++ data/voc.yaml | 2 +- utils/general.py | 32 +++++++-- 9 files changed, 143 insertions(+), 77 deletions(-) create mode 100644 data/visdrone.yaml diff --git a/data/argoverse_hd.yaml b/data/argoverse_hd.yaml index df7a936..0ba314d 100644 --- a/data/argoverse_hd.yaml +++ b/data/argoverse_hd.yaml @@ -1,6 +1,6 @@ # Argoverse-HD dataset (ring-front-center camera) http://www.cs.cmu.edu/~mengtial/proj/streaming/ # Train command: python train.py --data argoverse_hd.yaml -# Default dataset location is next to /yolov5: +# Default dataset location is next to YOLOv5: # /parent_folder # /argoverse # /yolov5 diff --git a/data/coco.yaml b/data/coco.yaml index fa33a12..f818a49 100644 --- a/data/coco.yaml +++ b/data/coco.yaml @@ -1,6 +1,6 @@ # COCO 2017 dataset http://cocodataset.org # Train command: python train.py --data coco.yaml -# Default dataset location is next to /yolov5: +# Default dataset location is next to YOLOv5: # /parent_folder # /coco # /yolov5 diff --git a/data/coco128.yaml b/data/coco128.yaml index c41bccf..83fbc29 100644 --- a/data/coco128.yaml +++ b/data/coco128.yaml @@ -1,6 +1,6 @@ # COCO 2017 dataset http://cocodataset.org - first 128 training images # Train command: python train.py --data coco128.yaml -# Default dataset location is next to /yolov5: +# Default dataset location is next to YOLOv5: # /parent_folder # /coco128 # /yolov5 diff --git a/data/scripts/get_argoverse_hd.sh b/data/scripts/get_argoverse_hd.sh index caec61e..18131a6 100644 --- a/data/scripts/get_argoverse_hd.sh +++ b/data/scripts/get_argoverse_hd.sh @@ -2,7 +2,7 @@ # Argoverse-HD dataset (ring-front-center camera) http://www.cs.cmu.edu/~mengtial/proj/streaming/ # Download command: bash data/scripts/get_argoverse_hd.sh # Train command: python train.py --data argoverse_hd.yaml -# Default dataset location is next to /yolov5: +# Default dataset location is next to YOLOv5: # /parent_folder # /argoverse # /yolov5 diff --git a/data/scripts/get_coco.sh b/data/scripts/get_coco.sh index bbb1e92..caae375 100755 --- a/data/scripts/get_coco.sh +++ b/data/scripts/get_coco.sh @@ -2,7 +2,7 @@ # COCO 2017 dataset http://cocodataset.org # Download command: bash data/scripts/get_coco.sh # Train command: python train.py --data coco.yaml -# Default dataset location is next to /yolov5: +# Default dataset location is next to YOLOv5: # /parent_folder # /coco # /yolov5 diff --git a/data/scripts/get_voc.sh b/data/scripts/get_voc.sh index 13b83c2..4c04aaa 100644 --- a/data/scripts/get_voc.sh +++ b/data/scripts/get_voc.sh @@ -2,7 +2,7 @@ # PASCAL VOC dataset http://host.robots.ox.ac.uk/pascal/VOC/ # Download command: bash data/scripts/get_voc.sh # Train command: python train.py --data voc.yaml -# Default dataset location is next to /yolov5: +# Default dataset location is next to YOLOv5: # /parent_folder # /VOC # /yolov5 @@ -29,34 +29,27 @@ echo "Completed in" $runtime "seconds" echo "Splitting dataset..." python3 - "$@" <train.txt cat 2007_train.txt 2007_val.txt 2007_test.txt 2012_train.txt 2012_val.txt >train.all.txt +mkdir ../VOC ../VOC/images ../VOC/images/train ../VOC/images/val +mkdir ../VOC/labels ../VOC/labels/train ../VOC/labels/val + python3 - "$@" <