57 img_paths = glob.glob(osp.join(dir_path,
'*.jpg'))
58 pattern = re.compile(
r'([-\d]+)_c(\d)')
61 for img_path
in img_paths:
62 pid, camid = map(int, pattern.search(img_path).groups())
63 assert 1 <= camid <= 8
68 data.append((img_path, pid, camid))