zengarden / light_head_rcnn

Light-Head R-CNN
834 stars 222 forks source link

Error with cython_bbox #26

Closed GeorgeSeif closed 6 years ago

GeorgeSeif commented 6 years ago

Hi there,

Awesome research and thanks for open-sourcing your code!

When trying to run train.py:

Traceback (most recent call last):
  File "train.py", line 12, in <module>
    import network_desp
  File "/home/indus/Documents/light_head_rcnn/experiments/lizeming/light_head_rcnn.ori_res101.coco.ps_roialign/network_desp.py", line 23, in <module>
    from detection_opr.rpn_batched.proposal_target_layer import proposal_target_layer
  File "/home/indus/Documents/light_head_rcnn/lib/detection_opr/rpn_batched/proposal_target_layer.py", line 14, in <module>
    from utils.py_faster_rcnn_utils.cython_bbox import bbox_overlaps
ImportError: No module named cython_bbox

I looked in the lib/utils/py_faster_rcnn_utils/ folder but I couldn't find any file named cython_bbox.py. I saw a file called bbox.py so I tried changing the line to from utils.py_faster_rcnn_utils.bbox import bbox_overlaps but to no avail.

Any suggestions as to how I can resolve this issue?

Thanks!

bl0 commented 6 years ago

I have met this error sometimes, I just recompile the cython_bbox module and it works.