glenn-jocher
commited on
Fix datasets for aws and get_coco.sh (#3788)
Browse files- data/scripts/get_coco.sh +2 -2
- utils/aws/userdata.sh +0 -1
data/scripts/get_coco.sh
CHANGED
@@ -8,14 +8,14 @@
|
|
8 |
# /yolov5
|
9 |
|
10 |
# Download/unzip labels
|
11 |
-
d='../' # unzip directory
|
12 |
url=https://github.com/ultralytics/yolov5/releases/download/v1.0/
|
13 |
f='coco2017labels.zip' # or 'coco2017labels-segments.zip', 68 MB
|
14 |
echo 'Downloading' $url$f ' ...'
|
15 |
curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background
|
16 |
|
17 |
# Download/unzip images
|
18 |
-
d='../coco/images' # unzip directory
|
19 |
url=http://images.cocodataset.org/zips/
|
20 |
f1='train2017.zip' # 19G, 118k images
|
21 |
f2='val2017.zip' # 1G, 5k images
|
|
|
8 |
# /yolov5
|
9 |
|
10 |
# Download/unzip labels
|
11 |
+
d='../datasets' # unzip directory
|
12 |
url=https://github.com/ultralytics/yolov5/releases/download/v1.0/
|
13 |
f='coco2017labels.zip' # or 'coco2017labels-segments.zip', 68 MB
|
14 |
echo 'Downloading' $url$f ' ...'
|
15 |
curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background
|
16 |
|
17 |
# Download/unzip images
|
18 |
+
d='../datasets/coco/images' # unzip directory
|
19 |
url=http://images.cocodataset.org/zips/
|
20 |
f1='train2017.zip' # 19G, 118k images
|
21 |
f2='val2017.zip' # 1G, 5k images
|
utils/aws/userdata.sh
CHANGED
@@ -10,7 +10,6 @@ if [ ! -d yolov5 ]; then
|
|
10 |
git clone https://github.com/ultralytics/yolov5 -b master && sudo chmod -R 777 yolov5
|
11 |
cd yolov5
|
12 |
bash data/scripts/get_coco.sh && echo "COCO done." &
|
13 |
-
bash data/scripts/get_voc.sh && echo "VOC done." &
|
14 |
sudo docker pull ultralytics/yolov5:latest && echo "Docker done." &
|
15 |
python -m pip install --upgrade pip && pip install -r requirements.txt && python detect.py && echo "Requirements done." &
|
16 |
wait && echo "All tasks done." # finish background tasks
|
|
|
10 |
git clone https://github.com/ultralytics/yolov5 -b master && sudo chmod -R 777 yolov5
|
11 |
cd yolov5
|
12 |
bash data/scripts/get_coco.sh && echo "COCO done." &
|
|
|
13 |
sudo docker pull ultralytics/yolov5:latest && echo "Docker done." &
|
14 |
python -m pip install --upgrade pip && pip install -r requirements.txt && python detect.py && echo "Requirements done." &
|
15 |
wait && echo "All tasks done." # finish background tasks
|