smallcorgi / Faster-RCNN_TF

Faster-RCNN in Tensorflow
MIT License
2.34k stars 1.12k forks source link

faile to run demo.py #207

Open a3551571 opened 7 years ago

a3551571 commented 7 years ago

Hello,dear guys. When I run the demo.py,I met a problem.

File "./tools/demo.py", line 11, in from networks.factory import get_network File "/home/wzx/chris/spider_man/Faster-RCNN_TF-master/tools/../lib/networks/init.py", line 8, in from .VGGnet_train import VGGnet_train File "/home/wzx/chris/spider_man/Faster-RCNN_TF-master/tools/../lib/networks/VGGnet_train.py", line 2, in from networks.network import Network File "/home/wzx/chris/spider_man/Faster-RCNN_TF-master/tools/../lib/networks/network.py", line 4, in import roi_pooling_layer.roi_pooling_op_grad File "/home/wzx/chris/spider_man/Faster-RCNN_TF-master/tools/../lib/roi_pooling_layer/roi_pooling_op_grad.py", line 3, in from roi_pooling_op import * ImportError: No module named 'roi_pooling_op'

I'm sure I have run the 'make' . Could you help me? Thanks a lot!

RaytongAL commented 6 years ago

here need an absolute path. change it from . import roi_pooling_op

AliceLcz commented 6 years ago

@RaytongAL Thanks! have faced this problem, too. I solve this by changing the path. 'roi_pooling_op' is in the fold 'roi_pooling_layer', change following: 'import roi_pooling_op' ----> 'import roi_pooling_layer.roi_pooling_op' It really works in my PC. Thanks a lot!!