Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/nomad/site-parameters-optimization.py @ 1192:606817bc31e8
bug correction
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Wed, 29 Jun 2022 23:02:47 +0200 |
| parents | f3b3696f5640 |
| children | 8a626226793e |
comparison
equal
deleted
inserted
replaced
| 1191:f3b3696f5640 | 1192:606817bc31e8 |
|---|---|
| 73 objects = storage.loadTrajectoriesFromSqlite(databaseFilename, 'object') | 73 objects = storage.loadTrajectoriesFromSqlite(databaseFilename, 'object') |
| 74 #load ground truth | 74 #load ground truth |
| 75 annotations = storage.loadTrajectoriesFromSqlite(gtDatabaseAbsPath, 'object') | 75 annotations = storage.loadTrajectoriesFromSqlite(gtDatabaseAbsPath, 'object') |
| 76 # Appending negative mota because nomad minimizes the output | 76 # Appending negative mota because nomad minimizes the output |
| 77 matchingDistance = 5 | 77 matchingDistance = 5 |
| 78 inter = TimeInterval.union([a.getTimeInterval() for a in annotations]) | 78 inter = moving.TimeInterval.unionIntervals([a.getTimeInterval() for a in annotations]) |
| 79 motp, mota, mt, mme, fpt, gt, gtMatches, toMatches = moving.computeClearMOT(annotations, objects, matchingDistance, inter.first, inter.last) | 79 motp, mota, mt, mme, fpt, gt, gtMatches, toMatches = moving.computeClearMOT(annotations, objects, matchingDistance, inter.first, inter.last) |
| 80 Mota.append(-mota) | 80 Mota.append(-mota) |
| 81 | 81 |
| 82 # Change to the previous directory | 82 # Change to the previous directory |
| 83 os.chdir(cwd) | 83 os.chdir(cwd) |
