dingjiansw101 / RoITransformer_DOTA

MIT License
194 stars 42 forks source link

ImportError: No module named dota_kit.poly_nms_gpu.poly_overlaps #6

Open chituma110 opened 5 years ago

chituma110 commented 5 years ago

image

After running the following command. there are no poly_overlaps to import

sudo apt-get install swig cd ${RoI_ROOT}/dota_kit swig -c++ -python polyiou.i python setup.py build_ext --inplace cd ${RoI_ROOT}/dota_kit/poly_nms_gpu make -j16

dingjiansw101 commented 5 years ago

You should use the same python interpret for complile and run.

YsDTL commented 5 years ago

I also encountered the same problem.I used the same python interpret(python 2.7) for complile and run. image

husthkk commented 5 years ago

I also encountered the same problem.I used the same python interpret(python 2.7) for complile and run. image

I also met this question.did you solved it?

YsDTL commented 5 years ago

I also encountered the same problem.I used the same python interpret(python 2.7) for complile and run. image

I also met this question.did you solved it?

I have not solved it yet.

dingpc000 commented 5 years ago

in the file add _"import sys sys.path.append("${RoIROOT}") " but it seem that another error happened "AttributeError: 'module' object has no attribute 'PSROIALIGNAVEPooling'"

wonyoungsen commented 5 years ago

I solved this problem by modifying "..../core/rcnn.py" file,add a line ---- import sys sys.path.append("${RoI_ROOT}") at the beginning, it can work!

wonyoungsen commented 5 years ago

I also encountered the same problem.I used the same python interpret(python 2.7) for complile and run. image

I also met this question.did you solved it?

I have not solved it yet.

I solved this problem by modifying "..../core/rcnn.py" file,add a line ---- import sys sys.path.append("${RoI_ROOT}") at the beginning, it can work!

vickabuto commented 4 years ago

I also encountered the same problem.I used the same python interpret(python 2.7) for complile and run. image

I also met this question.did you solved it?

I have not solved it yet.

I solved this problem by modifying "..../core/rcnn.py" file,add a line ---- import sys sys.path.append("${RoI_ROOT}") at the beginning, it can work!

I have add "import sys sys.path.append("${RoI_ROOT}") " but it still has the same problem.(ImportError: No module named dota_kit.poly_nms_gpu.poly_overlaps) Please help me thank you!

GrayGriffin commented 4 years ago

I have also been having this issue. "import sys" doesn't help at all, nor does directly editing the import path.

lingdiandeshui commented 4 years ago

Also encounter this issue, compile all in the same anaconda envi,“import sys” does not help,hope author can help. @dingjiansw101 PS,Is there anything to do with MXnet?

nandini211995 commented 2 years ago

in the file add _"import sys sys.path.append("${RoIROOT}") " but it seem that another error happened "AttributeError: 'module' object has no attribute 'PSROIALIGNAVEPooling'"

Did you solve "another error happened "AttributeError: 'module' object has no attribute 'PSROIALIGNAVEPooling'"".