Skip to content

Facing Type Error #3

Open
Open
@suravijayjilla

Description

@suravijayjilla

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions