e904b667c6
Build/Publish Develop Docs / deploy (push) Failing after 1s
PaddleOCR Code Style Check / check-code-style (push) Failing after 1s
PaddleOCR PR Tests GPU / detect-changes (push) Failing after 1s
PaddleOCR PR Tests / detect-changes (push) Failing after 1s
PaddleOCR PR Tests GPU / test-pr-gpu (push) Has been cancelled
PaddleOCR PR Tests / test-pr (push) Has been cancelled
PaddleOCR PR Tests GPU / test-pr-gpu-impl (push) Has been cancelled
PaddleOCR PR Tests / test-pr-python (3.13) (push) Has been cancelled
PaddleOCR PR Tests / test-pr-python (3.8) (push) Has been cancelled
PaddleOCR PR Tests / test-pr-python (3.9) (push) Has been cancelled
26 lines
507 B
Python
26 lines
507 B
Python
# -*- coding: utf-8 -*-
|
|
# @Time : 2019/8/23 21:54
|
|
# @Author : zhoujun
|
|
|
|
from .resnet import *
|
|
|
|
__all__ = ["build_backbone"]
|
|
|
|
support_backbone = [
|
|
"resnet18",
|
|
"deformable_resnet18",
|
|
"deformable_resnet50",
|
|
"resnet50",
|
|
"resnet34",
|
|
"resnet101",
|
|
"resnet152",
|
|
]
|
|
|
|
|
|
def build_backbone(backbone_name, **kwargs):
|
|
assert (
|
|
backbone_name in support_backbone
|
|
), f"all support backbone is {support_backbone}"
|
|
backbone = eval(backbone_name)(**kwargs)
|
|
return backbone
|