CharlesShang / TFFRCNN

FastER RCNN built on tensorflow
MIT License
875 stars 418 forks source link

ImportError: No module named lib.networks.factory #15

Open civilman628 opened 7 years ago

civilman628 commented 7 years ago

I can build pass, but when i run demo.py it reports error:

scopeserver@scopephotos:~/RaidDisk/DeepLearning/mwang/tensorflow/TFFRCNN$ python ./faster_rcnn/demo.py
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcudnn.so locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcufft.so locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcuda.so.1 locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcurand.so locally ./faster_rcnn Traceback (most recent call last): File "./faster_rcnn/demo.py", line 12, in from lib.networks.factory import get_network ImportError: No module named lib.networks.factory


but i can clearly see the folder is there.

nikste commented 7 years ago

Just had the same problem, as a quickfix you can add this to your demo.py

sys.path.append('/path/to/TFFRCNN/')

civilman628 commented 7 years ago

thanks, i get new errors:

Traceback (most recent call last): File "./faster_rcnn/demo.py", line 15, in from lib.networks.factory import get_network File "/home/scopeserver/RaidDisk/DeepLearning/mwang/TFFRCNN/lib/init.py", line 1, in import fast_rcnn File "/home/scopeserver/RaidDisk/DeepLearning/mwang/TFFRCNN/lib/fast_rcnn/init.py", line 9, in from . import train File "/home/scopeserver/RaidDisk/DeepLearning/mwang/TFFRCNN/lib/fast_rcnn/train.py", line 15, in from .nms_wrapper import nms_wrapper File "/home/scopeserver/RaidDisk/DeepLearning/mwang/TFFRCNN/lib/fast_rcnn/nms_wrapper.py", line 10, in from ..nms.gpu_nms import gpu_nms ImportError: No module named gpu_nms

civilman628 commented 7 years ago

i need check path one by one?

jackytu256 commented 7 years ago

Hi civilman, I just tried to copy demo file to the root of TFFRCNN and then python it to get the result of demo.

714586886 commented 7 years ago

hi @civilman628 i meet the same error as you ImportError: No module named lib.networks.factory how to fix it?

civilman628 commented 7 years ago

@714586886 copy demo file to the root of TFFRCNN and then python it to get the result of demo

vinayakarannil commented 7 years ago

still facing the same issue...i copied demo file to the root of TFFRCNN, now facing different issue

Traceback (most recent call last): File "demo.py", line 13, in from lib.networks.factory import get_network File "../lib/init.py", line 1, in import fast_rcnn ImportError: No module named 'fast_rcnn'

i think there is some issues with the the fast_rcnn folder of lib.

Rasec8401 commented 7 years ago

i just executed this on the terminal. export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH and it worked

a3551571 commented 7 years ago

I met the same issue with you.Did you solve the problem? Can you show me how to solve it?@vinayakkailas Thank you very much!

kxhit commented 6 years ago

@vinayakkailas Hi I met the same problem. ImportError: No module named 'fast_rcnn' Did you solve this problem? Thank you!

zengjingcheng commented 6 years ago

I first add sys.path.append('/.../TFFRCNN/')as @nikste said then I # the fast_rcnn in init.py then I had another problem:

current path is /home/zjc/TFFRCNN/faster_rcnn/demo.py Traceback (most recent call last): File "demo.py", line 117, in raise IOError(('Error: Model not found.\n')) OSError: Error: Model not found.

HaoWangDL commented 6 years ago

@kxhit Hi I met the same problem. ImportError: No module named 'fast_rcnn' Did you solve this problem? Tks

HaoWangDL commented 6 years ago

@vinayakkailas Hi I met the same problem. ImportError: No module named 'fast_rcnn' Did you solve this problem? Tks

HaoWangDL commented 6 years ago

@civilman628 Hi I met the same problem. ImportError: No module named 'fast_rcnn' Did you solve this problem? Tks

hxf930620 commented 6 years ago

@HaoWangDL 你解决问题了吗,qq:769598959,加qq交流