Skip to content

Commit 5d082db

Browse files
hgaiserHans Gaiser
authored andcommitted
Fix type hints in postprocess_detections.
1 parent 3868761 commit 5d082db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/models/detection/retinanet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def compute_loss(self, targets, head_outputs, anchors):
392392
return self.head.compute_loss(targets, head_outputs, anchors, matched_idxs)
393393

394394
def postprocess_detections(self, head_outputs, anchors, image_shapes):
395-
# type: (Tensor, Tensor, List[Tensor], List[Tuple[int, int]])
395+
# type: (Dict[str, Tensor], List[Tensor], List[Tuple[int, int]]) -> Dict[str, Tensor]
396396
# TODO: Merge this with roi_heads.RoIHeads.postprocess_detections ?
397397

398398
class_logits = head_outputs.pop('cls_logits')

0 commit comments

Comments
 (0)