最近在整软件杯,多目标检测,要用的数据集太多了,想尝试用在线下载数据集的方法,不小心解锁到啦!
来自网站:
https://blog.csdn.net/mathlxj/article/details/106329313
代码:
(其实最后下载的数据用不了,因为MOT数据是包括一些文档在内的,不能在aistudio平台直接使用)
import urllib
import shutil
annURL = "https://motchallenge.net/data/MOT16/"
annZipFile = "MOT16.zip"
with urllib.request.urlopen(annURL) as resp,open(annZipFile, 'wb')as out:
shutil.copyfileobj(resp, out) #使用urllib包下载压缩包