Skip to content

Commit

Permalink
fix FP16 bug of track_id annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
HanGuangXin committed Apr 27, 2022
1 parent f137cbf commit 7d71238
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 7d71238

Please sign in to comment.