Skip to content

Commit

Permalink
Merge pull request #184 from HanGuangXin/main
Browse files Browse the repository at this point in the history
fix FP16 bug of track_id annotation, ReID related
  • Loading branch information
ifzhang committed Apr 27, 2022
2 parents f137cbf + 7d71238 commit 2c082be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yolox/core/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def train_one_iter(self):
iter_start_time = time.time()

inps, targets = self.prefetcher.next()
track_ids = targets[:, :, 5]
targets = targets[:, :, :5]
inps = inps.to(self.data_type)
targets = targets.to(self.data_type)
targets.requires_grad = False
Expand Down

0 comments on commit 2c082be

Please sign in to comment.