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

run_scene.py: NameError: name 'labels' is not defined #1

Open
Dim25 opened this issue Jun 22, 2017 · 1 comment
Open

run_scene.py: NameError: name 'labels' is not defined #1

Dim25 opened this issue Jun 22, 2017 · 1 comment

Comments

@Dim25
Copy link

Dim25 commented Jun 22, 2017

When I run 'python run_scene.py images/triple.jpg' it returns:

Traceback (most recent call last):
File "run_scene.py", line 54, in
print i, labels[k]
NameError: name 'labels' is not defined

Hot fix
add:

    with open(LABELS, 'rb') as f:
        labels = pickle.load(f)

before:

    for i, k in enumerate(predictions):
        print i, labels[k]

in 'run_scene.py'

@mynameisvinn
Copy link
Owner

looks good @Dim25! want to submit a pr and ill merge?

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