Fix bug: COMBINEALL should add extra prefix to avoid pid conflictions (#447)

This commit is contained in:
Xie Jingyi 2021-03-30 15:49:52 +08:00 committed by GitHub
parent be0a089e1f
commit 25cfa88fd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,8 +102,8 @@ class Dataset(object):
for img_path, pid, camid in data:
if pid in self._junk_pids:
continue
pid = self.dataset_name + "_" + str(pid)
camid = self.dataset_name + "_" + str(camid)
pid = self.dataset_name + "_test_" + str(pid)
camid = self.dataset_name + "_test_" + str(camid)
combined.append((img_path, pid, camid))
_combine_data(self.query)