mindspore-lab / mindocr

A toolbox of ocr models and algorithms based on MindSpore
https://mindspore-lab.github.io/mindocr/
Apache License 2.0
206 stars 51 forks source link

Rectify code of the LayoutLM series models and adjust it to amp_level mode. #692

Closed Bourn3z closed 5 months ago

Bourn3z commented 5 months ago

Thank you for your contribution to the MindOCR repo. Before submitting this PR, please make sure:

Motivation

整改LayoutLM系列编码方式,统一到以yaml文件配置amp_level方式。 Rectify code of the LayoutLM series models and adjust it to amp_level mode.

Test Plan

(How should this PR be tested? Do you require special setup to run the test or repro the fixed bug?)

Related Issues and PRs

(Is this PR part of a group of changes? Link the other relevant PRs and Issues here. Use https://help.github.com/en/articles/closing-issues-using-keywords for help on GitHub syntax)