DeepTAM Knowledgebase
A bit of a knowledge base for important stuff and errors arround DeepTAM which you might encounter or at least that I encountered.
https://github.com/lmb-freiburg/deeptam
Feel free to pm me if you found a solution for another problem you had and I'll add it to this list.
https://github.com/MrMinemeet/
ADTF
DeepTAM and ADTF don't get along with each other that well, as ADTF uses a special place for Cuda which Tensorflow doesn't like
Also some other stuff
Other stuff that is important
- Restart your system from time to time when trying to get DeepTAM running
Installation
setup libraries and cmake
build and register lmbspecialops
Errors
Eigen/Core not found
Error Message
Solution
sudo apt-get install libeigen3-dev
sudo apt install python3-minieigen
after that with pip3 again
Boost/Python.hpp
Error Message
Solution
startsWith(…)
Error Message
Solution
comment the functions out
libcublas.so
not found
Error Message
Solution
cmake needs a version that is installed
GCC versions later than 6 not supported
Error Message
Solution
Start cmake with a parameter to use older version that is installed(install an older if not present)
I tested it on 4.8 and it worked. Versjk 5.5 was buggy and I'd have had to compile 5.4 on my own.
cmake -D CUDA_NVCC_FLAGS="-ccbin gcc-4.8" ..
Tensorflow not found
Error Message
Solution
- reinstall Tensorflow & Tensorflow-GPU
- make environment with pyhton3
mkvirtualenv -p /usr/bin/python3.6 --clear DeepTAM
Wrong CMAKE version when compiling lmbspecialops
Error Message
Traceback (most recent call last):
File "example_basic.py", line 102, in <module>
main()
File "example_basic.py", line 72, in main
tracker_core = TrackerCore(tracking_module_path,checkpoint,intrinsics)
File "/home/aadc/deeptam/tracking/python/deeptam_tracker/tracker.py", line 231, in __init__
self._tracking_mod = load_myNetworks_module_noname(self._tracking_module)
File "/home/aadc/deeptam/tracking/python/deeptam_tracker/utils/helpers.py", line 44, in load_myNetworks_module_noname
return load_myNetworks_module(module_name, path_to_myNetworks)
File "/home/aadc/deeptam/tracking/python/deeptam_tracker/utils/helpers.py", line 32, in load_myNetworks_module
return importlib.import_module('.'+myNetworks_name, module_name)
File "/home/aadc/.virtualenvs/DeepTAM/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 665, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "../python/deeptam_tracker/models/networks.py", line 2, in <module>
from .blocks import *
File "../python/deeptam_tracker/models/blocks.py", line 1, in <module>
from .helpers import *
File "../python/deeptam_tracker/models/helpers.py", line 1, in <module>
import lmbspecialops as sops
File "/home/aadc/lmbspecialops/python/lmbspecialops.py", line 27, in <module>
lmbspecialopslib = tf.load_op_library(_lib_path)
File "/home/aadc/.virtualenvs/DeepTAM/lib/python3.5/site-packages/tensorflow/python/framework/load_library.py", line 61, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /home/aadc/lmbspecialops/build/lib/lmbspecialops.so: undefined symbol: _ZTIN10tensorflow8OpKernelE
W0703 13:59:34.039927 140179251631872 deprecation_wrapper.py:119] From /home/aadc/deeptam/tracking/python/deeptam_tracker/tracker.py:242: The name tf.reset_default_graph is deprecated. Please use tf.compat.v1.reset_default_graph instead.
Solution
https://github.com/lmb-freiburg/demon/issues/26
https://github.com/lmb-freiburg/lmbspecialops/issues/3
there was an error in verifying the lgenfe output!
Error Message
Solution
run make command with only one thread
make -j1
and try another gcc version in the cmake argument
Undefinded Symbol
Error Message
Solution
not a good one found yet, just try intalling it from beginning again.
Sry but that but it helped for me
math_function.hpp not found
Error Message
Solution
For cuda 9.1 replace math_functions.hpp with cuda_runtime.h
This change should happen in a Core
file which is in your .virtualenv
folder
libcublas.so.8.0 cannot open shared object
Error Message
Solution
Install the right version of Cuda Toolkit 8.0 for your system from this nvidia website
https://developer.nvidia.com/cuda-80-ga2-download-archive
Credits
Error Message
In log:
Solution
- unpack
.run
file using the command: sudo sh ./cuda*.run --tar mxvf
- copy unpacked file
InstallUtils.pm
to /usr/lib/x86_64-linux-gnu/perl-base
- enter command in terminal:
export $PERL5LIB
Credits
Error Message
Solution
Something with TF and GPU not getting detected, no solution found yet
Other important stuff
install Cuda 10.0
Tensorflow(Normal and GPU) 1.14.0