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
14 lines
320 B
Python
14 lines
320 B
Python
# -*- coding: utf-8 -*-
|
|
# @Time : 2020/6/5 11:35
|
|
# @Author : zhoujun
|
|
from .DBHead import DBHead
|
|
|
|
__all__ = ["build_head"]
|
|
support_head = ["DBHead"]
|
|
|
|
|
|
def build_head(head_name, **kwargs):
|
|
assert head_name in support_head, f"all support head is {support_head}"
|
|
head = eval(head_name)(**kwargs)
|
|
return head
|