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 structural_similarity_index_measure with autocast #1291

Merged
merged 3 commits into from
Oct 26, 2022

Conversation

SkafteNicki
Copy link
Member

@SkafteNicki SkafteNicki commented Oct 25, 2022

What does this PR do?

Fixes #1290

Found two variables in structural_similarity_index_measure that are necessary to have in original dtype to get the correct result within a tolerance of 1e-3.

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Merging #1291 (2d85233) into master (45aabe4) will decrease coverage by 49%.
The diff coverage is 100%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1291     +/-   ##
========================================
- Coverage      86%     38%    -49%     
========================================
  Files         190     190             
  Lines       11115   11118      +3     
========================================
- Hits         9614    4189   -5425     
- Misses       1501    6929   +5428     

@mergify mergify bot removed the has conflicts label Oct 25, 2022
@justusschock justusschock merged commit 70a844f into master Oct 26, 2022
@justusschock justusschock deleted the bugfix/ssim_precision branch October 26, 2022 07:45
Borda pushed a commit that referenced this pull request Oct 31, 2022
* fix

* changelog

Co-authored-by: Jirka <jirka.borovec@seznam.cz>
(cherry picked from commit 70a844f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / fix Something isn't working ready topic: Image
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSIM returns incorrect results under mixed-precision training
3 participants