You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: