Files
PaddleOCR/benchmark/PaddleOCR_DBNet/models/neck/__init__.py
pavel.lamonov 56532cc9a9
Some checks are pending
Build/Publish Develop Docs / deploy (push) Waiting to run
first commit
2025-07-02 08:57:16 +03:00

14 lines
311 B
Python

# -*- coding: utf-8 -*-
# @Time : 2020/6/5 11:34
# @Author : zhoujun
from .FPN import FPN
__all__ = ["build_neck"]
support_neck = ["FPN"]
def build_neck(neck_name, **kwargs):
assert neck_name in support_neck, f"all support neck is {support_neck}"
neck = eval(neck_name)(**kwargs)
return neck