(self, results)
| 12 | self.alpha = 0.1 |
| 13 | |
| 14 | def init_track(self, results): |
| 15 | for item in results: |
| 16 | if item['score'] > self.opt.new_thresh: |
| 17 | self.id_count += 1 |
| 18 | # active and age are never used in the paper |
| 19 | item['active'] = 1 |
| 20 | item['age'] = 1 |
| 21 | item['tracking_id'] = self.id_count |
| 22 | if not ('ct' in item): |
| 23 | bbox = item['bbox'] |
| 24 | item['ct'] = [(bbox[0] + bbox[2]) / 2, (bbox[1] + bbox[3]) / 2] |
| 25 | self.tracks.append(item) |
| 26 | self.nID = 10000 |
| 27 | self.embedding_bank = np.zeros((self.nID, 128)) |
| 28 | self.cat_bank = np.zeros((self.nID), dtype=np.int) |
| 29 | |
| 30 | def reset(self): |
| 31 | self.id_count = 0 |
nothing calls this directly
no outgoing calls
no test coverage detected