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

fix: Added missing AMP flags in training scripts #690

Merged
merged 1 commit into from
Dec 10, 2021
Merged

fix: Added missing AMP flags in training scripts #690

merged 1 commit into from
Dec 10, 2021

Conversation

fg-mindee
Copy link
Contributor

This PR simply adds the missing AMP flags to enable it on all training & evaluation loops for PyTorch.

Any feedback is welcome!

@fg-mindee fg-mindee added type: bug Something isn't working ext: references Related to references folder framework: pytorch Related to PyTorch backend topic: text detection Related to the task of text detection topic: text recognition Related to the task of text recognition labels Dec 9, 2021
@fg-mindee fg-mindee added this to the 0.5.0 milestone Dec 9, 2021
@fg-mindee fg-mindee self-assigned this Dec 9, 2021
@codecov
Copy link

codecov bot commented Dec 9, 2021

Codecov Report

Merging #690 (cf94633) into main (9c45ba6) will decrease coverage by 0.36%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #690      +/-   ##
==========================================
- Coverage   96.40%   96.04%   -0.37%     
==========================================
  Files         117      117              
  Lines        4540     4548       +8     
==========================================
- Hits         4377     4368       -9     
- Misses        163      180      +17     
Flag Coverage Δ
unittests 96.04% <ø> (-0.37%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
doctr/models/recognition/crnn/pytorch.py 94.18% <0.00%> (-5.82%) ⬇️
...dels/detection/differentiable_binarization/base.py 89.44% <0.00%> (-3.34%) ⬇️
doctr/models/recognition/master/pytorch.py 93.47% <0.00%> (-2.11%) ⬇️
doctr/models/detection/linknet/base.py 85.14% <0.00%> (-1.99%) ⬇️
...s/detection/differentiable_binarization/pytorch.py 97.50% <0.00%> (-0.81%) ⬇️
doctr/models/detection/linknet/pytorch.py 98.07% <0.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c45ba6...cf94633. Read the comment docs.

Copy link
Collaborator

@charlesmindee charlesmindee left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@fg-mindee fg-mindee merged commit a7d55a4 into main Dec 10, 2021
@fg-mindee fg-mindee deleted the amp branch December 10, 2021 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ext: references Related to references folder framework: pytorch Related to PyTorch backend topic: text detection Related to the task of text detection topic: text recognition Related to the task of text recognition type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants