Fixed compatible problems (issue #3)

Summary:
Fix urllib compatible problems in python3
pull/5/head
L1aoXingyu 2019-03-21 14:14:14 +08:00 committed by GitHub
parent 72c6002a15
commit b3f7d6233c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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')