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

UnboundLocalError: local variable 'features' referenced before assignment #6

Open
JeonHyungJin opened this issue Jan 23, 2019 · 1 comment

Comments

@JeonHyungJin
Copy link

At classiPi.py
I can`t find features is assigned.
how can i solve this problem?

@kageomi
Copy link

kageomi commented May 27, 2021

you should initialize variable in extract_features function.
like this.

features = np.empty((0,161))      # add this line 
features = np.vstack([features,ext_features])

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