Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config中的algorithm参数 #79

Closed
yyr6661 opened this issue May 20, 2020 · 2 comments
Closed

config中的algorithm参数 #79

yyr6661 opened this issue May 20, 2020 · 2 comments

Comments

@yyr6661
Copy link

yyr6661 commented May 20, 2020

在学习过程中,我注意到train.py中判断了一下算法参数algorithm是否在已有范围内,之后就找不到哪里使用了这个参数
我想知道代码是怎么实现选择不同的算法的,求大佬们指点

@LDOUBLEV
Copy link
Collaborator

选择不同的算法是在yml配置文件中定义好的,比如det_mv3_db.yml

yml文件里定义好了要加载的算法模型,和backbone head等

Architecture:
  function: ppocr.modeling.architectures.det_model,DetModel

Backbone:
  function: ppocr.modeling.backbones.det_mobilenet_v3,MobileNetV3
  scale: 0.5
  model_name: large

Head:
  function: ppocr.modeling.heads.det_db_head,DBHead
  model_name: large
  k: 50
  inner_channels: 96
  out_channels: 2

@yyr6661
Copy link
Author

yyr6661 commented May 20, 2020

哦哦,明白了,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants