pytorchcocotools.internal.mask_api.rle_fr_bbox
source module pytorchcocotools.internal.mask_api.rle_fr_bbox
Functions
-
rleFrBbox — Convert bounding boxes to encoded masks.
source rleFrBbox(bb: tv.BoundingBoxes, *, device: TorchDevice | None = None, requires_grad: bool | None = None) → RLEs
Convert bounding boxes to encoded masks.
Parameters
-
bb : tv.BoundingBoxes — The bounding boxes.
-
device : TorchDevice | None — The desired device of the bounding boxes.
-
requires_grad : bool | None — Whether the bounding boxes require gradients.
Returns
-
RLEs — The RLE encoded masks.