Skip to content

Commit e68d6b0

Browse files
correct the size of returned tensor in comments of ps_roi_pool.py and ps_roi_align.py (#3849)
* correct the size of returne tensor * Styling changes Co-authored-by: Vasilis Vryniotis <[email protected]>
1 parent 541e0f1 commit e68d6b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

torchvision/ops/ps_roi_align.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def ps_roi_align(
3939
``ceil(roi_width / output_width)``, and likewise for height). Default: -1
4040
4141
Returns:
42-
Tensor[K, C, output_size[0], output_size[1]]: The pooled RoIs
42+
Tensor[K, C / (output_size[0] * output_size[1]), output_size[0], output_size[1]]: The pooled RoIs
4343
"""
4444
_assert_has_ops()
4545
check_roi_boxes_shape(boxes)

torchvision/ops/ps_roi_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def ps_roi_pool(
3333
the box coordinates. Default: 1.0
3434
3535
Returns:
36-
Tensor[K, C, output_size[0], output_size[1]]: The pooled RoIs.
36+
Tensor[K, C / (output_size[0] * output_size[1]), output_size[0], output_size[1]]: The pooled RoIs.
3737
"""
3838
_assert_has_ops()
3939
check_roi_boxes_shape(boxes)

0 commit comments

Comments
 (0)