Skip to content

Commit

Permalink
Fix bug causing labels to be keypoints instead of bboxes in bbox mAP
Browse files Browse the repository at this point in the history
  • Loading branch information
JSabadin committed Jun 27, 2024
1 parent f3d4280 commit ce5ed26
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def update(
def prepare(
self, outputs: Packet[Tensor], labels: Labels
) -> tuple[list[dict[str, Tensor]], list[dict[str, Tensor]]]:
label = labels[self.task][0]
label = labels["boundingbox"][
0
] # TODO: Think of a better way to deal with multi-task heads
output_nms = self.get_input_tensors(outputs)

image_size = self.node.original_in_shape[1:]
Expand Down

0 comments on commit ce5ed26

Please sign in to comment.