一、概述
本篇介绍如何通过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