中文pytorch网址:https://ptorch.com/docs/1/datasets#coco
1、首先安装COCO API。参考自:https://github.com/cocodataset/cocoapi/issues/14
git clone https://github.com/pdollar/coco.git
cd coco/PythonAPI
make
python setup.py install
2、下载数据。http://cocodataset.org/#download