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

关于dygraph分支中,识别模型训练,要使用数据增强应该如何设置? #1744

Closed
liuzard opened this issue Jan 14, 2021 · 2 comments

Comments

@liuzard
Copy link

liuzard commented Jan 14, 2021

在以前的develop分支,在识别模型的训练中可以设置desort参数,在dygraph分支中应该如何设置呢?谢谢!

@littletomatodonkey
Copy link
Collaborator

你好,可以设置use_tia和aug_prob这两个参数,use_tia表示是否tia数据增广,aug_prob表示每个数据增广操作的概率,为0的话,表示不使用数据增广,否则按照该概率对图片进行数据增广

def __init__(self, use_tia=True, aug_prob=0.4, **kwargs):

对应配置文件可以在这里添加字段

- RecAug:
  - use_tia: True
  - aug_prob: 0.4

@FoneMobius
Copy link

FoneMobius commented Aug 4, 2021

应该这样的,use_tia和aug_prob前面没有横杠
#- RecAug: null
-RecAug:
use_tia: True
aug_prob: 0.4

an1018 pushed a commit to an1018/PaddleOCR that referenced this issue Aug 17, 2022
* Add PrepareData-->SelectModel-->Train-->Eval-->Test-->Infer-->Slim-->Deploy document DetectionPipeline.md, test=document_fix
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

4 participants