Shortcuts

Source code for mmrotate.core.bbox.builder

# Copyright (c) OpenMMLab. All rights reserved.
from mmcv.utils import build_from_cfg
from mmdet.core.bbox.builder import BBOX_ASSIGNERS, BBOX_CODERS, BBOX_SAMPLERS

ROTATED_BBOX_ASSIGNERS = BBOX_ASSIGNERS
ROTATED_BBOX_SAMPLERS = BBOX_SAMPLERS
ROTATED_BBOX_CODERS = BBOX_CODERS


[docs]def build_assigner(cfg, **default_args): """Builder of box assigner.""" return build_from_cfg(cfg, ROTATED_BBOX_ASSIGNERS, default_args)
[docs]def build_sampler(cfg, **default_args): """Builder of box sampler.""" return build_from_cfg(cfg, ROTATED_BBOX_SAMPLERS, default_args)
[docs]def build_bbox_coder(cfg, **default_args): """Builder of box coder.""" return build_from_cfg(cfg, ROTATED_BBOX_CODERS, default_args)
Read the Docs v: v0.3.4
Versions
latest
stable
1.x
v1.0.0rc0
v0.3.4
v0.3.3
v0.3.2
v0.3.1
v0.3.0
v0.2.0
v0.1.1
v0.1.0
main
dev
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.