[WIP] Add Utility function to read image from the file as imread is deprecated#10149
[WIP] Add Utility function to read image from the file as imread is deprecated#10149keyur9 wants to merge 2 commits intoscikit-learn:masterfrom
Conversation
jnothman
left a comment
There was a problem hiding this comment.
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.
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?