__init__.py 1.62 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
from ._register_onnx_ops import _register_custom_op
from .boxes import (
    nms,
    batched_nms,
    remove_small_boxes,
    clip_boxes_to_image,
    box_area,
    box_iou,
    generalized_box_iou,
    masks_to_boxes,
)
12
from .boxes import box_convert
13
from .deform_conv import deform_conv2d, DeformConv2d
14
from .drop_block import drop_block2d, DropBlock2d, drop_block3d, DropBlock3d
15
from .feature_pyramid_network import FeaturePyramidNetwork
16
from .focal_loss import sigmoid_focal_loss
Joao Gomes's avatar
Joao Gomes committed
17
from .giou_loss import generalized_box_iou_loss
18
from .misc import FrozenBatchNorm2d, Conv2dNormActivation, Conv3dNormActivation, SqueezeExcitation
19
20
21
22
23
from .poolers import MultiScaleRoIAlign
from .ps_roi_align import ps_roi_align, PSRoIAlign
from .ps_roi_pool import ps_roi_pool, PSRoIPool
from .roi_align import roi_align, RoIAlign
from .roi_pool import roi_pool, RoIPool
24
from .stochastic_depth import stochastic_depth, StochasticDepth
25

26
27
_register_custom_op()

28
29

__all__ = [
30
    "masks_to_boxes",
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
    "deform_conv2d",
    "DeformConv2d",
    "nms",
    "batched_nms",
    "remove_small_boxes",
    "clip_boxes_to_image",
    "box_convert",
    "box_area",
    "box_iou",
    "generalized_box_iou",
    "roi_align",
    "RoIAlign",
    "roi_pool",
    "RoIPool",
    "ps_roi_align",
    "PSRoIAlign",
    "ps_roi_pool",
    "PSRoIPool",
    "MultiScaleRoIAlign",
    "FeaturePyramidNetwork",
    "sigmoid_focal_loss",
    "stochastic_depth",
    "StochasticDepth",
54
    "FrozenBatchNorm2d",
55
56
    "Conv2dNormActivation",
    "Conv3dNormActivation",
57
    "SqueezeExcitation",
Hu Ye's avatar
Hu Ye committed
58
    "generalized_box_iou_loss",
59
60
61
62
    "drop_block2d",
    "DropBlock2d",
    "drop_block3d",
    "DropBlock3d",
63
]