Skip to content

Commit

Permalink
Fixed Retrieving Labels in AdaptiveDetectionLoss (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 committed Oct 9, 2024
1 parent 575e0ca commit 6f5a9c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def prepare(
batch_size = pred_scores.shape[0]
device = pred_scores.device

target = labels[self.task][0].to(device)
target = self.get_label(labels)[0]
if self.gt_bboxes_scale is None:
self.gt_bboxes_scale = torch.tensor(
[
Expand Down

0 comments on commit 6f5a9c3

Please sign in to comment.