Operators¶
torchvision.ops
implements operators that are specific for Computer Vision.
Note
All operators have native support for TorchScript.
|
Performs non-maximum suppression in a batched fashion. |
|
Computes the area of a set of bounding boxes, which are specified by their (x1, y1, x2, y2) coordinates. |
|
Converts boxes from given in_fmt to out_fmt. |
|
Return intersection-over-union (Jaccard index) between two sets of boxes. |
|
Clip boxes so that they lie inside an image of size size. |
|
Performs Deformable Convolution v2, described in Deformable ConvNets v2: More Deformable, Better Results if |
|
Return generalized intersection-over-union (Jaccard index) between two sets of boxes. |
|
Original implementation from https://github.com/facebookresearch/fvcore/blob/bfff2ef/fvcore/nn/giou_loss.py |
|
Compute the bounding boxes around the provided masks. |
|
Performs non-maximum suppression (NMS) on the boxes according to their intersection-over-union (IoU). |
|
Performs Position-Sensitive Region of Interest (RoI) Align operator mentioned in Light-Head R-CNN. |
|
Performs Position-Sensitive Region of Interest (RoI) Pool operator described in R-FCN |
|
Remove boxes which contains at least one side smaller than min_size. |
|
Performs Region of Interest (RoI) Align operator with average pooling, as described in Mask R-CNN. |
|
Performs Region of Interest (RoI) Pool operator described in Fast R-CNN |
|
Original implementation from https://github.com/facebookresearch/fvcore/blob/master/fvcore/nn/focal_loss.py . |
|
Implements the Stochastic Depth from “Deep Networks with Stochastic Depth” used for randomly dropping residual branches of residual architectures. |
|
See |
|
See |
|
See |
|
See |
|
See |
|
Multi-scale RoIAlign pooling, which is useful for detection with or without FPN. |
|
Module that adds a FPN from on top of a set of feature maps. |
|
See |
|
BatchNorm2d where the batch statistics and the affine parameters are fixed |
|
This block implements the Squeeze-and-Excitation block from https://arxiv.org/abs/1709.01507 (see Fig. |