From b3f7d6233cff84942a24a453bb1dea82d8efddb7 Mon Sep 17 00:00:00 2001 From: L1aoXingyu Date: Thu, 21 Mar 2019 14:14:14 +0800 Subject: [PATCH] Fixed compatible problems (issue #3) Summary: Fix urllib compatible problems in python3 --- data/datasets/dukemtmcreid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/datasets/dukemtmcreid.py b/data/datasets/dukemtmcreid.py index 2481d79..76bd1dc 100644 --- a/data/datasets/dukemtmcreid.py +++ b/data/datasets/dukemtmcreid.py @@ -67,7 +67,7 @@ class DukeMTMCreID(BaseImageDataset): fpath = osp.join(self.dataset_dir, osp.basename(self.dataset_url)) print("Downloading DukeMTMC-reID dataset") - urllib.urlretrieve(self.dataset_url, fpath) + urllib.request.urlretrieve(self.dataset_url, fpath) print("Extracting files") zip_ref = zipfile.ZipFile(fpath, 'r')