Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ijdoc committed Apr 2, 2023
1 parent 55b90e1 commit 8875587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/loss.py
Expand Up @@ -739,7 +739,7 @@ def build_targets(self, p, targets, imgs):
+ 3.0 * pair_wise_iou_loss
)

matching_matrix = torch.zeros_like(cost)
matching_matrix = torch.zeros_like(cost, device="cpu")

for gt_idx in range(num_gt):
_, pos_idx = torch.topk(
Expand Down

0 comments on commit 8875587

Please sign in to comment.