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

update as_grey argument of skimage.io.imread to as_gray #6902

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nhs000
Copy link

@nhs000 nhs000 commented Feb 8, 2020

Summary

Due to scikit-image/scikit-image#2652 changes, using as_grey when calling skimage.io.imread at

img = skimage.img_as_float(skimage.io.imread(filename, as_grey=not color)).astype(np.float32)

causes the following error

TypeError: _open() got an unexpected keyword argument 'as_grey'*

Steps to reproduce

import caffe
caffe.io.load_image('./imgs/example.jpg')

Solution

use use_gray instead of use_grey

System configuration

  • Operating system: Ubuntu 18.04
  • Compiler: g++
  • CUDA version (if applicable): 9.2
  • Python version (if using pycaffe): 3.6
  • skimage.version : 0.16.2

@benwu95
Copy link

benwu95 commented Feb 27, 2020

same issue in #6514

Copy link

@java-abhinav07 java-abhinav07 left a comment

Choose a reason for hiding this comment

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

Fixes the issue. Have to make changes in the installed packages, would be really helpful if this was merged.

@gyan-maurya
Copy link

Fixes the issue. Have to make changes in the installed packages, would be really helpful if this was merged.

please merge this....will be really helpfull

@lou-k
Copy link

lou-k commented Oct 7, 2020

This also is needed if you're using the latest scikit-image (0.17.2), please merge!

mattcnz added a commit to cnztech/image-match that referenced this pull request Oct 28, 2020
@hyper750
Copy link

Can anyone review the pull request? Please merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants