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

Add new metrics: SAM #885

Merged
merged 36 commits into from
Mar 21, 2022
Merged

Add new metrics: SAM #885

merged 36 commits into from
Mar 21, 2022

Conversation

vumichien
Copy link
Contributor

@vumichien vumichien commented Mar 11, 2022

What does this PR do?

Adds new Metric SAM #799

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 Mar 11, 2022

Codecov Report

Merging #885 (bb917de) into master (865a08f) will decrease coverage by 24%.
The diff coverage is 94%.

@@           Coverage Diff           @@
##           master   #885     +/-   ##
=======================================
- Coverage      95%    71%    -24%     
=======================================
  Files         169    171      +2     
  Lines        7096   7149     +53     
=======================================
- Hits         6748   5086   -1662     
- Misses        348   2063   +1715     

@vumichien vumichien changed the title metrics: add SAM Add new metrics: SAM Mar 11, 2022
@vumichien vumichien changed the title Add new metrics: SAM Add new metrics: SAM Mar 11, 2022
@Borda Borda added this to the v0.8 milestone Mar 11, 2022
Copy link
Contributor

@stancld stancld left a comment

Choose a reason for hiding this comment

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

Hi @vumichien, can you please also update CHANGELOG.md and add this new metric into the docs (docs/source/references/{functional,modules}.rst files.):

@vumichien
Copy link
Contributor Author

@stancld Sorry I forgot it. I just updated them

Copy link

@Paul-Aime Paul-Aime left a comment

Choose a reason for hiding this comment

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

To be coherent with the class metric SpectralAngleMapper, it seems that spectral_angle_mapper would be a better name.

torchmetrics/functional/__init__.py Outdated Show resolved Hide resolved
torchmetrics/functional/image/sam.py Outdated Show resolved Hide resolved
Copy link
Member

@SkafteNicki SkafteNicki left a comment

Choose a reason for hiding this comment

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

few comments

docs/source/references/functional.rst Outdated Show resolved Hide resolved
docs/source/references/modules.rst Outdated Show resolved Hide resolved
tests/image/test_sam.py Outdated Show resolved Hide resolved
torchmetrics/functional/image/sam.py Outdated Show resolved Hide resolved
torchmetrics/image/sam.py Outdated Show resolved Hide resolved
torchmetrics/image/sam.py Outdated Show resolved Hide resolved
torchmetrics/image/sam.py Show resolved Hide resolved
vumichien and others added 4 commits March 21, 2022 18:27
Co-authored-by: Nicki Skafte Detlefsen <skaftenicki@gmail.com>
Co-authored-by: Nicki Skafte Detlefsen <skaftenicki@gmail.com>
Co-authored-by: Nicki Skafte Detlefsen <skaftenicki@gmail.com>
Co-authored-by: Nicki Skafte Detlefsen <skaftenicki@gmail.com>
torchmetrics/functional/image/sam.py Outdated Show resolved Hide resolved
torchmetrics/image/sam.py Outdated Show resolved Hide resolved
tests/image/test_sam.py Outdated Show resolved Hide resolved
@vumichien
Copy link
Contributor Author

@Borda @SkafteNicki Could you help me to resolve this conflict with master?

@mergify mergify bot removed the has conflicts label Mar 21, 2022
@mergify mergify bot added the ready label Mar 21, 2022
@SkafteNicki SkafteNicki enabled auto-merge (squash) March 21, 2022 13:17
@mergify mergify bot removed the ready label Mar 21, 2022
@SkafteNicki SkafteNicki merged commit f144425 into Lightning-AI:master Mar 21, 2022
@mergify mergify bot added the ready label Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants