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

Facing TypeError #2

Open
suravijayjilla opened this issue Jun 17, 2019 · 3 comments
Open

Facing TypeError #2

suravijayjilla opened this issue Jun 17, 2019 · 3 comments

Comments

@suravijayjilla
Copy link

No description provided.

@suravijayjilla
Copy link
Author

Hi,
I am facing the below error,
TypeError: numpy boolean subtract, the - operator, is deprecated, use the bitwise_xor, the ^ operator, or the logical_xor function instead.

Please give some suggestion to solve this error.
Thanks in advance...

@ikergarcia1996
Copy link
Owner

ikergarcia1996 commented Jun 17, 2019

Hi @suravijayjilla! Can you. Could you indicate the cell and line of code where the error occurs?

@suravijayjilla
Copy link
Author

Hi,

These are all the list of issues I get when i try to run the source.
Please give some suggestion to solve this error.
Thanks in advance...

Cell : Calculate the Histogram of Oriented Gradients¶
line 360 : fd_train[i], hog_image = hog(X_train_chars[i].reshape(28, 28), orientations=8, pixels_per_cell=(4, 4), cells_per_block=(1, 1), visualise=True)

File "/home/cd005/hulk/lib/python3.6/site-packages/skimage/feature/_hog.py", line 202, in hog
g_row, g_col = _hog_channel_gradient(image)
File "/home/cd005/hulk/lib/python3.6/site-packages/skimage/feature/_hog.py", line 38, in _hog_channel_gradient
g_row[1:-1, :] = channel[2:, :] - channel[:-2, :]
TypeError: numpy boolean subtract, the - operator, is deprecated, use the bitwise_xor, the ^ operator, or the logical_xor function instead.

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

2 participants