We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 111aafb + eee83f7 commit a803d0cCopy full SHA for a803d0c
torchvision/models/detection/roi_heads.py
@@ -826,11 +826,7 @@ def forward(
826
827
# keep none checks in if conditional so torchscript will conditionally
828
# compile each branch
829
- if (
830
- self.keypoint_roi_pool is not None
831
- and self.keypoint_head is not None
832
- and self.keypoint_predictor is not None
833
- ):
+ if self.has_keypoint():
834
keypoint_proposals = [p["boxes"] for p in result]
835
if self.training:
836
# during training, only focus on positive boxes
0 commit comments