Download segmentation/mmseg_custom/core/box/builder.py from Leonardo6/git: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/Leonardo6/git/resolve/main/segmentation/mmseg_custom/core/box/builder.py
- Command line
-
hf download hf://Leonardo6/git/segmentation/mmseg_custom/core/box/builder.py
-
curl -L -o builder.py https://huggingface.co/Leonardo6/git/resolve/main/segmentation/mmseg_custom/core/box/builder.py
446 Bytes
| # Copyright (c) OpenMMLab. All rights reserved. | |
| from mmcv.utils import Registry, build_from_cfg | |
| BBOX_SAMPLERS = Registry('bbox_sampler') | |
| BBOX_CODERS = Registry('bbox_coder') | |
| def build_sampler(cfg, **default_args): | |
| """Builder of box sampler.""" | |
| return build_from_cfg(cfg, BBOX_SAMPLERS, default_args) | |
| def build_bbox_coder(cfg, **default_args): | |
| """Builder of box coder.""" | |
| return build_from_cfg(cfg, BBOX_CODERS, default_args) | |