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

Run Error #1

Closed
wk910930 opened this issue Jul 10, 2017 · 1 comment
Closed

Run Error #1

wk910930 opened this issue Jul 10, 2017 · 1 comment

Comments

@wk910930
Copy link

Dear @jacobgil ,

Thanks for your great work! However, when I run python explain.py examples/flute.jpg, something goes wrong:

$ python explain.py examples/flute.jpg 
Category with highest probability 558
Optimizing.. 
/usr/local/lib/python2.7/dist-packages/torch/nn/modules/upsampling.py:183: UserWarning: nn.UpsamplingBilinear2d is deprecated. Use nn.Upsample instead.
  warnings.warn("nn.UpsamplingBilinear2d is deprecated. Use nn.Upsample instead.")
Traceback (most recent call last):
  File "explain.py", line 132, in <module>
    noise = noise + cv2.randn(noise, 0, 0.2)
TypeError: unsupported operand type(s) for +: 'float' and 'NoneType'

Maybe it is caused by the some python packages with different versions as you used, I guess. Do you know how to fix it?

Thanks!
Kun

@wk910930
Copy link
Author

It looks like that cv2.randn() always return NoneType.

@ghost ghost mentioned this issue Jan 28, 2018
jacobgil added a commit that referenced this issue Jul 19, 2018
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

No branches or pull requests

1 participant