Skip to content

Commit 2801a76

Browse files
authored
Adds docs and Fixes Imports for ops and io (#2654)
* Adds docs and fixes improts for ops and io * reverts io and init for images
1 parent 7f5b2c4 commit 2801a76

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

docs/source/ops.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ torchvision.ops
1010

1111

1212
.. autofunction:: nms
13+
.. autofunction:: batched_nms
14+
.. autofunction:: remove_small_boxes
15+
.. autofunction:: clip_boxes_to_image
16+
.. autofunction:: box_area
17+
.. autofunction:: box_iou
1318
.. autofunction:: roi_align
1419
.. autofunction:: ps_roi_align
1520
.. autofunction:: roi_pool

torchvision/io/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
write_video,
1616
)
1717

18-
1918
__all__ = [
2019
"write_video",
2120
"read_video",

torchvision/ops/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .boxes import nms, box_iou
1+
from .boxes import nms, batched_nms, remove_small_boxes, clip_boxes_to_image, box_area, box_iou
22
from .new_empty_tensor import _new_empty_tensor
33
from .deform_conv import deform_conv2d, DeformConv2d
44
from .roi_align import roi_align, RoIAlign
@@ -14,7 +14,8 @@
1414

1515

1616
__all__ = [
17-
'deform_conv2d', 'DeformConv2d', 'nms', 'roi_align', 'RoIAlign', 'roi_pool',
17+
'deform_conv2d', 'DeformConv2d', 'nms', 'batched_nms', 'remove_small_boxes',
18+
'clip_boxes_to_image', 'box_area', 'box_iou', 'roi_align', 'RoIAlign', 'roi_pool',
1819
'RoIPool', '_new_empty_tensor', 'ps_roi_align', 'PSRoIAlign', 'ps_roi_pool',
1920
'PSRoIPool', 'MultiScaleRoIAlign', 'FeaturePyramidNetwork'
2021
]

0 commit comments

Comments
 (0)