34 file_path_list = [
'test_gallery',
'test_prob']
36 for file_path
in file_path_list:
37 sub_file = os.path.join(train_path, file_path)
38 img_name = glob(os.path.join(sub_file,
"*.jpg"))
39 for img_path
in img_name:
40 img_name = img_path.split(
'/')[-1]
41 img_info = img_name.split(
'_')
43 camid = self.
dataset_name +
"_" + img_info[1].split(
'.')[0]
44 data.append([img_path, pid, camid])