Skip to content

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

Description

@Dim25

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'

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