TFFRCNN icon indicating copy to clipboard operation
TFFRCNN copied to clipboard

ImportError: No module named lib.networks.factory

Open civilman628 opened this issue 8 years ago • 15 comments

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.

civilman628 avatar Jan 18 '17 18:01 civilman628

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

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

nikste avatar Jan 18 '17 20:01 nikste

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 avatar Jan 18 '17 21:01 civilman628

i need check path one by one?

civilman628 avatar Jan 18 '17 21:01 civilman628

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

jackytu256 avatar Jan 20 '17 09:01 jackytu256

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

714586886 avatar Apr 06 '17 14:04 714586886

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

civilman628 avatar Apr 06 '17 16:04 civilman628

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.

vinayakarannil avatar Apr 23 '17 15:04 vinayakarannil

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

Rasec8401 avatar Apr 29 '17 06:04 Rasec8401

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!

a3551571 avatar Jul 31 '17 06:07 a3551571

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

kxhit avatar Dec 17 '17 09:12 kxhit

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.

zengjingcheng avatar Jan 12 '18 04:01 zengjingcheng

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

HaoWangDL avatar Feb 27 '18 07:02 HaoWangDL

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

HaoWangDL avatar Feb 27 '18 07:02 HaoWangDL

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

HaoWangDL avatar Feb 27 '18 07:02 HaoWangDL

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

hxf930620 avatar Mar 15 '18 02:03 hxf930620