We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I am was trying to generate results on MOT16 challenge results and used mm.utils.compare_to_groundtruth to get the accuracy but resulted in error.
df_gt = mm.io.loadtxt('MOT16/preds/MOT16-01/gt/det.txt') df_test = mm.io.loadtxt('MOT16/preds/MOT16-01/gt/pretrained_pred.txt') check = mm.utils.compare_to_groundtruth(df_gt, df_test, 'iou', distth=0.5)
ERROR
KeyError Traceback (most recent call last) <ipython-input-102-df402fdf5fbc> in <module> 6 7 # df_test = mm.io.loadtxt(result) ----> 8 check = mm.utils.compare_to_groundtruth(df_gt, df_test, 'iou', distth=0.5) 9 ~/opt/anaconda3/lib/python3.7/site-packages/motmetrics/utils.py in compare_to_groundtruth(gt, dt, dist, distfields, distth) 80 if len(oids) > 0 and len(hids) > 0: 81 dists = compute_dist(fgt.values, fdt.values) ---> 82 acc.update(oids, hids, dists, frameid=fid) 83 84 return acc ~/opt/anaconda3/lib/python3.7/site-packages/motmetrics/mot.py in update(self, oids, hids, dists, frameid, vf) 260 is_switch = (o in self.m and 261 self.m[o] != h and --> 262 abs(frameid - self.last_occurrence[o]) <= self.max_switch_time) 263 cat1 = 'SWITCH' if is_switch else 'MATCH' 264 if cat1 == 'SWITCH': KeyError: -1
pretrained_pred.txt det.txt finetuned_pred.txt
The text was updated successfully, but these errors were encountered:
I have same problem. did you solve?
Sorry, something went wrong.
@yunseung-dable I removed a couple of metrics and it worked fine. Was not able to corner out the issue
same problem
Same problem, when the customer ID is some specific number, it will reprot error
No branches or pull requests
Hi,
I am was trying to generate results on MOT16 challenge results and used mm.utils.compare_to_groundtruth to get the accuracy but resulted in error.
ERROR
pretrained_pred.txt
det.txt
finetuned_pred.txt
The text was updated successfully, but these errors were encountered: