You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if osp.exists(train_test_partition_file):
train_test_partition = load_pickle(train_test_partition_file)
else:
raise RuntimeError("Train/test partition file should be provided.'")
trainval_pids=set()
query_pids = set()
gallery_pids = set()
for im_type in ['detected','labeled']:
trainval_im_names = train_test_partition[im_type]['train_im_names']
query_im_names = train_test_partition[im_type]['query_im_names']
gallery_im_names = train_test_partition[im_type]['gallery_im_names']
trainval_pids.update(set([parse_im_name(n,'id') for n in trainval_im_names]))
query_pids.update(set([parse_im_name(n,'id') for n in query_im_names]))
gallery_pids.update(set([parse_im_name(n,'id') for n in gallery_im_names]))
print (trainval_pids & gallery_pids)
assert query_pids <= gallery_pids
assert trainval_pids.isdisjoint(gallery_pids)
It causes "AssertionError".
I find that there is an intersection between trainval and gallery. (set([1201, 1389]))
The training/testing partition file is “re_ranking_train_test_split.pkl” downloaded from the given link.
Looking forward for your reply, thank you.
The text was updated successfully, but these errors were encountered:
Thank you for sharing the code!
when I write the codes as follow ,
It causes "AssertionError".
I find that there is an intersection between trainval and gallery. (set([1201, 1389]))
The training/testing partition file is “re_ranking_train_test_split.pkl” downloaded from the given link.
Looking forward for your reply, thank you.
The text was updated successfully, but these errors were encountered: