Scheaven
2021-09-18 291deeb1fcf45dbf39a24aa72a213ff3fd6b3405
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
B
p¦–_ ã@s*dZddlmZedƒZde_dd„ZdS)z9
@author:  liaoxingyu
@contact: sherlockliao01@gmail.com
é)ÚRegistryÚBACKBONEa8
Registry for backbones, which extract feature maps from images
The registered object must be a callable that accepts two arguments:
1. A :class:`detectron2.config.CfgNode`
2. A :class:`detectron2.layers.ShapeSpec`, which contains the input shape specification.
It must returns an instance of :class:`Backbone`.
cCs|jjj}t |¡|ƒ}|S)zp
    Build a backbone from `cfg.MODEL.BACKBONE.NAME`.
    Returns:
        an instance of :class:`Backbone`
    )ÚMODELrÚNAMEÚBACKBONE_REGISTRYÚget)ÚcfgZ backbone_nameÚbackbone©r
ú./modeling/backbones/build.pyÚbuild_backbones
r N)Ú__doc__Úutils.registryrrr r
r
r
r Ú<module>s