From 1d7bf1de2b7e6eff4a4efd8da69850fe107aa125 Mon Sep 17 00:00:00 2001 From: LielinJiang <50691816+LielinJiang@users.noreply.github.com> Date: Fri, 15 Jan 2021 18:37:11 +0800 Subject: [PATCH] Update voc dataset url (#30450) * update voc url --- python/paddle/vision/datasets/voc2012.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/paddle/vision/datasets/voc2012.py b/python/paddle/vision/datasets/voc2012.py index f846728f802..9d71a83d601 100644 --- a/python/paddle/vision/datasets/voc2012.py +++ b/python/paddle/vision/datasets/voc2012.py @@ -25,8 +25,7 @@ from paddle.dataset.common import _check_exists_and_download __all__ = ["VOC2012"] -VOC_URL = 'http://host.robots.ox.ac.uk/pascal/VOC/voc2012/\ -VOCtrainval_11-May-2012.tar' +VOC_URL = 'https://dataset.bj.bcebos.com/voc/VOCtrainval_11-May-2012.tar' VOC_MD5 = '6cd6e144f989b92b3379bac3b3de84fd' SET_FILE = 'VOCdevkit/VOC2012/ImageSets/Segmentation/{}.txt' @@ -42,6 +41,9 @@ class VOC2012(Dataset): """ Implementation of `VOC2012 `_ dataset + To speed up the download, we put the data on https://dataset.bj.bcebos.com/voc/VOCtrainval_11-May-2012.tar. + Original data can get from http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar. + Args: data_file(str): path to data file, can be set None if :attr:`download` is True. Default None -- GitLab