MultiNet icon indicating copy to clipboard operation
MultiNet copied to clipboard

error running in train_utils.py and work around

Open rnunziata opened this issue 7 years ago • 2 comments

error on running.

python demo.py --gpus 0 --input data/demo/um_000005.png

*********************************************************************train_utils.py: commented out if use_stitching
  File "demo.py", line 413, in <module>
    tf.app.run()
  File "/home/richard/.virtualenvs/cvp3/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "demo.py", line 364, in main
    min_conf=0.50, tau=subhypes['detection']['tau'])
  File "/home/richard/opencv3-p3-code/not_working_yet/MultiNet/submodules/KittiBox/incl/utils/train_utils.py", line 103, in add_rectangles
    from stitch_wrapper import stitch_rects
ImportError: ./submodules/KittiBox/submodules/utils/stitch_wrapper.so: undefined symbol: _Py_ZeroStruct


got around this by commenting out lines in train_utils.py
    #if use_stitching:
    #    from stitch_wrapper import stitch_rects
    #    acc_rects = stitch_rects(all_rects, tau)
    #else:
    acc_rects = all_rects_r

rnunziata avatar May 21 '17 19:05 rnunziata

Looks like a linking error. Have you tried running make again? Or use a different gcc / cython version.

MarvinTeichmann avatar May 26 '17 10:05 MarvinTeichmann

@MarvinTeichmann , I tried running make again. However, it didn't work.

I tried this suggestion as well: https://github.com/Russell91/TensorBox/issues/34. It too didn't work out.

debapriyamaji avatar Feb 15 '18 06:02 debapriyamaji