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

selected block normalization method is invalid #3

Open
Landay7 opened this issue Nov 7, 2017 · 5 comments
Open

selected block normalization method is invalid #3

Landay7 opened this issue Nov 7, 2017 · 5 comments

Comments

@Landay7
Copy link

Landay7 commented Nov 7, 2017

When i try to run python detector.py I have next problem
image

Can you help, please?

@Windaway
Copy link

Windaway commented Dec 6, 2017

Remove normalize. Skimage will remove the features.

@zhixinma
Copy link

The definition of function hog is as follows

def hog(image, orientations=9, pixels_per_cell=(8, 8), cells_per_block=(3, 3),
        block_norm='L1', visualise=False, transform_sqrt=False,
        feature_vector=True, normalise=None)

so removing normalize and visualise will works, specifying the parameter name will works too

@Weipeilang
Copy link

When I was running the code, I found that it didn't work very well. How can I make it work better

@qlerebours
Copy link

qlerebours commented Aug 4, 2018

@Weipeilang i had the same issue but I think I found the answer:

When they work on the human detector, they worked with scikit-image in v0.12.x: Doc in v0.12
In the linked version, the hog method didn't have the current block_norm param, included in the v0.13.x
Current doc version 0.15.x

This is why we get this error message. To fix this, you can simply replace hog(im, orientations, pixels_per_cell, cells_per_block, visualize, normalize) by hog(im, orientations, pixels_per_cell, cells_per_block, visualize=visualize, transform_sqrt=normalize) to prevent visualize value to be assigned to block_norm value (causing the error)

@BUPTLdy could you maybe update the README to specify the version of lib used ?

@shahsamkit73
Copy link

I am getting this error during execution....
capture

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

6 participants