df0ae6d0e03b9d51dc9367a2ea02dbcec4220246,torchreid/data_manager/market1501.py,Market1501,__init__,#Market1501#Any#Any#,34
Before Change
self._check_before_run()
train, num_train_pids, num_train_imgs = self._process_dir(self.train_dir, relabel=True)
query, num_query_pids, num_query_imgs = self._process_dir(self.query_dir, relabel=False)
gallery, num_gallery_pids, num_gallery_imgs = self._process_dir(self.gallery_dir, relabel=False)
num_total_pids = num_train_pids + num_query_pids
num_total_imgs = num_train_imgs + num_query_imgs + num_gallery_imgs
if verbose:
print("=> Market1501 loaded")
print("Dataset statistics:")
print(" ------------------------------")
print(" subset | // ids | // images")
print(" ------------------------------")
print(" train | {:5d} | {:8d}".format(num_train_pids, num_train_imgs))
print(" query | {:5d} | {:8d}".format(num_query_pids, num_query_imgs))
print(" gallery | {:5d} | {:8d}".format(num_gallery_pids, num_gallery_imgs))
print(" ------------------------------")
print(" total | {:5d} | {:8d}".format(num_total_pids, num_total_imgs))
print(" ------------------------------")
self.train = train
self.query = query
self.gallery = gallery
self.num_train_pids = num_train_pids
self.num_query_pids = num_query_pids
self.num_gallery_pids = num_gallery_pids
def _check_before_run(self):
Check if all files are available before going deeper
if not osp.exists(self.dataset_dir):
After Change
query = self._process_dir(self.query_dir, relabel=False)
gallery = self._process_dir(self.gallery_dir, relabel=False)
if verbose:
print("=> Market1501 loaded")
self.print_dataset_statistics(train, query, gallery)
self.train = train
self.query = query
self.gallery = gallery
self.num_train_pids, self.num_train_imgs, self.num_train_cams = self.get_imagedata_info(self.train)
self.num_query_pids, self.num_query_imgs, self.num_query_cams = self.get_imagedata_info(self.query)
self.num_gallery_pids, self.num_gallery_imgs, self.num_gallery_cams = self.get_imagedata_info(self.gallery)
def _check_before_run(self):
Check if all files are available before going deeper
if not osp.exists(self.dataset_dir):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 66
Instances
Project Name: KaiyangZhou/deep-person-reid
Commit Name: df0ae6d0e03b9d51dc9367a2ea02dbcec4220246
Time: 2018-11-04
Author: k.zhou@qmul.ac.uk
File Name: torchreid/data_manager/market1501.py
Class Name: Market1501
Method Name: __init__
Project Name: KaiyangZhou/deep-person-reid
Commit Name: df0ae6d0e03b9d51dc9367a2ea02dbcec4220246
Time: 2018-11-04
Author: k.zhou@qmul.ac.uk
File Name: torchreid/data_manager/dukemtmcreid.py
Class Name: DukeMTMCreID
Method Name: __init__
Project Name: KaiyangZhou/deep-person-reid
Commit Name: df0ae6d0e03b9d51dc9367a2ea02dbcec4220246
Time: 2018-11-04
Author: k.zhou@qmul.ac.uk
File Name: torchreid/data_manager/msmt17.py
Class Name: MSMT17
Method Name: __init__
Project Name: KaiyangZhou/deep-person-reid
Commit Name: df0ae6d0e03b9d51dc9367a2ea02dbcec4220246
Time: 2018-11-04
Author: k.zhou@qmul.ac.uk
File Name: torchreid/data_manager/market1501.py
Class Name: Market1501
Method Name: __init__