smallcorgi / Faster-RCNN_TF

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

AttributeError: 'module' object has no attribute 'roi_pool' #319

Open namangt68 opened 6 years ago

namangt68 commented 6 years ago

Getting below error when using demo function from demo.py for inference of 2nd different trained model in same python script(i.e roi_pooling.so library is loaded twice). Reference resolved issue in tensorflow when same custom op library is loaded twice. Not able to find where roi_pool attribute is deleted after inference of one model.

File "lib/roi_pooling_layer/roi_pooling_op.py", line 6, in roi_pool = _roi_pooling_module.roi_pool AttributeError: 'module' object has no attribute 'roi_pool'

Demo works fine when using single model.

NorwayLobster commented 6 years ago

got the same problem. Hi, bro, do you solve it?