question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hi again,

I installed the repo as stated in README. in my ~/.bashrc I added “export PYTHONPATH=/home/ivision/keras-retinanet:$PYTHONPATH”

I am getting the following error message. Is this an installation issue or does it has something to do with my python path? Cause I changed the class names in ~/keras-retinanet/keras_retinanet/preprocessing …

Thanks!

error message:

File "scripts/train.py", line 205, in <module>
    callbacks=callbacks,
  File "/usr/local/lib/python2.7/dist-packages/keras/legacy/interfaces.py", line 87, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 2115, in fit_generator
    generator_output = next(output_generator)
  File "/usr/local/lib/python2.7/dist-packages/keras/utils/data_utils.py", line 735, in get
    six.reraise(value.__class__, value, value.__traceback__)
  File "/usr/local/lib/python2.7/dist-packages/keras/utils/data_utils.py", line 635, in data_generator_task
    generator_output = next(self._generator)
  File "build/bdist.linux-x86_64/egg/keras_retinanet/preprocessing/generator.py", line 226, in next
  File "build/bdist.linux-x86_64/egg/keras_retinanet/preprocessing/generator.py", line 198, in compute_input_output
  File "build/bdist.linux-x86_64/egg/keras_retinanet/preprocessing/generator.py", line 78, in load_annotations_group
  File "build/bdist.linux-x86_64/egg/keras_retinanet/preprocessing/pascal_voc.py", line 163, in load_annotations
  File "/home/ivision/.local/lib/python2.7/site-packages/six.py", line 737, in raise_from
    raise value
ValueError: invalid annotations file: im8_scene01031-1071.xml: could not parse object #0: class name 'Projection' not found in classes: ['sheep', 'horse', 'bicycle', 'bottle', 'cow', 'sofa', 'bus', 'dog', 'cat', 'person', 'train', 'diningtable', 'aeroplane', 'car', 'pottedplant', 'tvmonitor', 'chair', 'bird', 'boat', 'motorbike']

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:49 (23 by maintainers)

github_iconTop GitHub Comments

1reaction
de-vri-escommented, Dec 9, 2017

@taewookim: If this is a recurring problem please open a new issue with a full stack trace so that we can fix it 😃

1reaction
nealzGucommented, Dec 7, 2017

thanks a lot! I will close this issue for now. I will probably continue to test the csv-approach soon, but I will just open a new issue when Im experiencing new issues 😉

you guys helped me a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using PYTHONPATH — Functional MRI methods
PYTHONPATH is an environment variable. See the Python 3 docs for PYTHONPATH. The PYTHONPATH variable has a value that is a string with...
Read more >
PYTHONPATH Environment Variable in Python
The PYTHONPATH variable holds a string with the name of various directories that need to be added to the sys.path directory list by...
Read more >
What is PYTHONPATH environment variable in Python?
PYTHONPATH is an environment variable which you can set to add additional directories where python will look for modules and packages.
Read more >
Understanding the Python Path Environment Variable in Python
Pythonpath is a special environment variable that provides guidance to the Python interpreter about where to find various libraries and ...
Read more >
1. Command line and environment — Python 3.11.1 ...
In addition to normal directories, individual PYTHONPATH entries may refer to zipfiles containing pure Python modules (in either source or compiled form).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found