demo_odometry.py KeyError: 'Tr' error
See original GitHub issueAfter running demo_odometry.py code this error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/spyder/utils/site/sitecustomize.py", line 866, in runfile
execfile(filename, namespace)
File "/usr/local/lib/python2.7/dist-packages/spyder/utils/site/sitecustomize.py", line 94, in execfile
builtins.execfile(filename, *where)
File "/home/acs/Documents/python_projects/DOKTORA/Monocular Odometry/demos/demo_odometry.py", line 23, in <module>
dataset = pykitti.odometry(basedir, sequence, frames=range(0, 20, 5))
File "build/bdist.linux-x86_64/egg/pykitti/odometry.py", line 31, in __init__
File "build/bdist.linux-x86_64/egg/pykitti/odometry.py", line 156, in _load_calib
KeyError: 'Tr'
My setup:
xubuntu: Ubuntu 16.04.2 LTS Editor: Spyder Python 2.7
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Python KeyError Exceptions and How to Handle Them
In this tutorial, you'll learn how to handle Python KeyError exceptions. They are often caused by a bad key lookup in a dictionary,...
Read more >How to Fix KeyError Exceptions in Python - Rollbar
The Python KeyError is an exception that occurs when an attempt is made to access an item in a dictionary that does not...
Read more >type 'exceptions.KeyError'
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they...
Read more >keyerror in Python – How to Fix Dictionary Error
When working with dictionaries in Python, a KeyError gets raised when you try to access an item that doesn't exist in a Python...
Read more >KeyError in Python - html - Stack Overflow
And line 42 is the last line of my code. The error isn't actually affecting functionality, and everything works fine, but I don't...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Solved with this file: http://www.cvlibs.net/download.php?file=data_odometry_calib.zip
For some reason the version that I downloaded does not have Tr in calib.txt in all sequences.
This is probably because the calib.txt in poses overwriting the correct calib.