Skip to content

Commit

Permalink
fix pointrend inference for empty images
Browse files Browse the repository at this point in the history
Reviewed By: alexander-kirillov

Differential Revision: D27281355

fbshipit-source-id: cb8a3f0499de4210bdf92bf27670c19d8f8077d7
  • Loading branch information
ppwwyyxx authored and facebook-github-bot committed Mar 24, 2021
1 parent bbfd61e commit 34bd206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/PointRend/point_rend/mask_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _roi_pooler(self, features: List[Tensor], boxes: List[Boxes]):
roi_features, _ = point_sample_fine_grained_features(
features_list, features_scales, boxes, point_coords
)
return roi_features.view(num_boxes, -1, output_size, output_size)
return roi_features.view(num_boxes, roi_features.shape[1], output_size, output_size)

def _forward_mask_point(self, features, mask_coarse_logits, instances):
"""
Expand Down

0 comments on commit 34bd206

Please sign in to comment.