一、概述
本篇介紹如何通過ubuntu命令行獲取各個語義分割的經典數據集。
二、Demo
1.獲取VOC 2012
download:
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar
解壓:
tar xvf VOCtrainval_11-May-2012.tar
2.獲取MSCOCO-2017
首先創建一個bash文件:
vi coco.sh
然後在該文件中寫入以下代碼:
#!/bin/sh
Copy the following script command.
start = 'date + %s'
echo "Prepare to download train-val2017 anotation zip file..."
wget -c http://images.cocodataset.org/annotations/annotations_trainval2017.zip
unzip annotations_trainval2017.zip
echo "Prepare to download train2017 image zip file..."
wget -c http://images.cocodataset.org/zips/train2017.zip
unzip train2017.zip
rm -f train2017.zip
echo "Prepare to download test2017 image zip file..."
wget -c http://images.cocodataset.org/zips/val2017.zip
unzip val2017.zip
rm -f val2017.zip
end = 'date + %s'
runtime = $((end - start))
echo "Download completed in " $runtime " second"
最後執行該文件:
bash coco.sh