Skip to content

Conversation

SamitHuang
Copy link
Collaborator

@SamitHuang SamitHuang commented Apr 15, 2023

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

Motivation

mindir export is a needed feature for deployment with the trained model.

crnn_r34 is too concise, r can be resnet or resnext, etc.

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)

@SamitHuang SamitHuang changed the title Add mindir export for trained models and related docs, tests Add mindir export for trained models and related docs, tests; Rename dbnet_r50 -> dbnet_resnet50, crnn_r34 -> crnn_resnet34 for consistency Apr 15, 2023
@SamitHuang SamitHuang merged commit 1ace357 into mindspore-lab:main Apr 15, 2023

for i, o in enumerate(outputs_mindir):
print('mindir net out: ', outputs_mindir[i].sum(), outputs_mindir[i].shape)
print('ckpt net out: ', outputs_ckpt[i].sum(), outputs_mindir[i].shape)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo?
outputs_mindir -> outputs_ckpt

colawyee pushed a commit that referenced this pull request Jan 2, 2024
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

Successfully merging this pull request may close these issues.

2 participants