tiancity-NJU/da-faster-rcnn-PyTorch

ImportError: No module named '_init_paths' when evaluating

viniciusarruda opened this issue · 1 comments

The error:

ImportError: No module named '_init_paths'

is occurring when evaluating a trained model because the eval/test.py cannot see the _init_paths module which is in the parent directory.

It may happen sometimes in different env , It is not a bug but the path problem. You can try sys.path.insert(0,os.path.abspath(os.path.dirname(__file__)+os.path.sep+'..')) in the eval/test.py. or move the test into the root path directly.