79 img_paths = glob.glob(osp.join(dir_path,
'*.jpg'))
80 pattern = re.compile(
r'([-\d]+)_c([-\d]+)')
83 for img_path
in img_paths:
84 pid, camid = map(int, pattern.search(img_path).groups())
87 assert 0 <= pid <= 1501
88 assert 1 <= camid <= 100
93 data.append((img_path, pid, camid))