msracver / Deep-Feature-Flow

Deep Feature Flow for Video Recognition
MIT License
1.3k stars 297 forks source link

AttributeError: 'module' object has no attribute 'MultiProposal' #2

Closed cory8249 closed 7 years ago

cory8249 commented 7 years ago

Hi, thank you for releasing this code. However I cannot run it as expected.

Traceback (most recent call last):
  File "/home/cory/Deep-Feature-Flow/rfcn/demo.py", line 142, in <module>
    main()
  File "/home/cory/Deep-Feature-Flow/rfcn/demo.py", line 49, in main
    sym = sym_instance.get_test_symbol(config)
  File "/home/cory/Deep-Feature-Flow/rfcn/symbols/resnet_v1_101_rfcn.py", line 628, in get_test_symbol
    rois = mx.contrib.sym.MultiProposal(
AttributeError: 'module' object has no attribute 'MultiProposal'

I followed every step mentioned in this repo. Recompiling MXNet with operator_cxx worked very well. But in python code it seems not found these ops.

However, I can build and run Deformable-ConvNets without any error. The building processes of these 2 repos are almost the same. Can you please give me some hint ?

My PC: Ubuntu 16.04, Anaconda 2, CUDA 8, CUDNN 5.1

YuwenXiong commented 7 years ago

Hi, please make sure you use the correct MXNet, you can print mxnet.__path__ to verify it.

cory8249 commented 7 years ago

The mxnet.path is correct. ($HOME/mxnet/python/mxnet)

I reset mxnet directory by using ($git clean -d -x -f) and rebuild it with operator_cxx . Everything works fine. Maybe there are some conflicts between anaconda and system's python. Or I typed something wrong in previous build. (for ananconda do not use 'sudo', only python setup.py install will work)

Thank you for help.

einsiedler0408 commented 7 years ago

solved

balabala7776 commented 5 years ago

how to solve the problem