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

single precision support in skimage.features #5353

Merged
merged 14 commits into from
Jun 7, 2021

Conversation

grlee77
Copy link
Contributor

@grlee77 grlee77 commented Apr 26, 2021

Description

This PR adds single precision support to many functions in the features module.

Checklist

For reviewers

  • Check that the PR title is short, concise, and will make sense 1 year
    later.
  • Check that new functions are imported in corresponding __init__.py.
  • Check that new features, API changes, and deprecations are mentioned in
    doc/release/release_dev.rst.

@grlee77 grlee77 added ⏩ type: Enhancement Improve existing features 📜 type: API Involves API change(s) labels Apr 26, 2021
@pep8speaks
Copy link

pep8speaks commented Apr 26, 2021

Hello @grlee77! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-06-07 14:21:27 UTC

@grlee77
Copy link
Contributor Author

grlee77 commented Apr 26, 2021

There are a couple of failures for hog with float32 on OS X that need to be looked into.

Unfortunately despite the recent caching PR, etc. a timeout was still observed on Azure.

@grlee77
Copy link
Contributor Author

grlee77 commented Apr 27, 2021

Note sure why there was lower accuracy on OS X only for a couple of the HOG tests. Using double precision internally for hoghistograms resolves the issue, but I'm not sure why this is necessary.

Copy link
Member

@rfezzani rfezzani left a comment

Choose a reason for hiding this comment

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

Thank you @grlee77, I just found a forgotten commented debugging block. I also suggest to directly use pytest functions instead of their aliases in skimage.testing.

skimage/feature/blob.py Outdated Show resolved Hide resolved
skimage/feature/tests/test_blob.py Outdated Show resolved Hide resolved
skimage/feature/tests/test_corner.py Outdated Show resolved Hide resolved
@grlee77
Copy link
Contributor Author

grlee77 commented Jun 7, 2021

@rfezzani: I have made the requested changes.

I also removed use of unittest from test_peaks.py since that was not really in line with typical test style in this library.

@rfezzani
Copy link
Member

rfezzani commented Jun 7, 2021

Excellent @grlee77, just waiting for the green CI and I'll merge 😉

@grlee77
Copy link
Contributor Author

grlee77 commented Jun 7, 2021

Excellent @grlee77, just waiting for the green CI and I'll merge wink

Great. I went ahead and also updated the other float32 PRs to have the same testing style as well. Thanks for reviewing!

@rfezzani rfezzani merged commit ed469af into scikit-image:main Jun 7, 2021
@rfezzani
Copy link
Member

rfezzani commented Jun 7, 2021

🎉

@grlee77 grlee77 deleted the float32_features branch July 8, 2021 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⏩ type: Enhancement Improve existing features 📜 type: API Involves API change(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants