def _download_data(self):
    if osp.exists(self.dataset_dir):
        print('This dataset has been downloaded.')
        return
    print('Creating directory {}'.format(self.dataset_dir))
    mkdir_if_missing(self.dataset_dir)
    fpath = osp.join(self.dataset_dir, osp.basename(self.dataset_url))
    print('Downloading DukeMTMC-VideoReID dataset')
    urllib.urlretrieve(self.dataset_url, fpath)
    print('Extracting files')
    zip_ref = zipfile.ZipFile(fpath, 'r')
    zip_ref.extractall(self.dataset_dir)
    zip_ref.close()
def _download_data(self):
    if osp.exists(self.dataset_dir):
        print('This dataset has been downloaded.')
        return
    print('Creating directory {}'.format(self.dataset_dir))
    mkdir_if_missing(self.dataset_dir)
    fpath = osp.join(self.dataset_dir, osp.basename(self.dataset_url))
    print('Downloading DukeMTMC-VideoReID dataset')
    urllib.urlretrieve(self.dataset_url, fpath)
    print('Extracting files')
    zip_ref = zipfile.ZipFile(fpath, 'r')
    zip_ref.extractall(self.dataset_dir)
    zip_ref.close()