PoseCNN icon indicating copy to clipboard operation
PoseCNN copied to clipboard

ImportError: No module named libsynthesizer

Open sedlaj45 opened this issue 6 years ago • 3 comments

When I tried to run the training demo ./experiments/scripts/lov_color_2d_train.sh $GPU_ID there was the following error:

File "./tools/train_net.py", line 303, in <module>
    import libsynthesizer
ImportError: No module named libsynthesizer

So I tried to compile setup.py python setup.py build_ext --inplace but it failed because of missing synthesizer.hpp:

synthesize/synthesizer.cpp:588:27: fatal error: synthesizer.hpp: No such file or directory
compilation terminated.

(There's only synthesize.hpp in $ROOT/lib/synthesize/ but no synthesizer.hpp)

Is the synthesizer.hpp missing / could you please add the file to the github repository? Or is there another solution to this problem? Thanks for help.

sedlaj45 avatar Jun 25 '18 13:06 sedlaj45

I am running into the same issue though. Were you able to resolve this?

nkalavak avatar Jul 20 '18 14:07 nkalavak

libsynthesizer is compiled from lib/synthesize. If you do not use synthetic data for training or ICP in testing, there is no need to use the library. If you want to use it, compile it and then export PYTHONPATH=$PYTHONPATH:$ROOT/lib/synthesize/build"

yuxng avatar Jul 20 '18 18:07 yuxng

libsynthesizer compiles successfully but when trying to use demo.py with depth images (in order to try ICP), I get the following error :

AttributeError: 'module' object has no attribute 'Synthesizer'

aditya2592 avatar Nov 08 '18 22:11 aditya2592