-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[WIP] Add Utility function to read image from the file as imread is deprecated #10149
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should make _imread a function in sklearn.utils
I agree with @jnothman and you can add a test by using one of the image from sklearn.datasets.images |
I put removed the issue number (it will happen automatically when merging). Could you give a better title to the PR |
Codecov Report
@@ Coverage Diff @@
## master #10149 +/- ##
=======================================
Coverage 96.21% 96.21%
=======================================
Files 337 337
Lines 62891 62891
=======================================
Hits 60508 60508
Misses 2383 2383
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #10149 +/- ##
=======================================
Coverage 96.21% 96.21%
=======================================
Files 337 337
Lines 62891 62891
=======================================
Hits 60508 60508
Misses 2383 2383
Continue to review full report at Codecov.
|
Thank you for the feedback @jnothman and @glemaitre. I've created a utility function and added a test. |
You have test failures... |
converted according to `mode`, and the result is then flattened using | ||
mode 'F'. | ||
""" | ||
im = Image.open(name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't do anything here with flatten
or mode
.
@keyur9 are you going to work on the fix? |
Hello @glemaitre , Apologize for losing track of this and not updating the PR. Sorry, to inform that I won't be able to work on this until the weekend. So, if anyone want to work on this, feel free to do that or else will get back to this on the weekend. Thank you, |
The weekend should be fine
|
Reference Issues/PRs
Fixes #10147
What does this implement/fix? Explain your changes.
Copy the implementation of scipy.misc.imread as imread is deprecated suggested using PIL/pillow directly
Any other comments?