text-detection-ctpn icon indicating copy to clipboard operation
text-detection-ctpn copied to clipboard

ImportError: No module named 'utils.bbox.bbox'

Open 521alice opened this issue 5 years ago • 17 comments

在Windows10 上部署,出现了这样的报错 Traceback (most recent call last): File "D:/text-detection-ctpn/main/demo.py", line 12, in from nets import model_train as model File "D:\text-detection-ctpn\nets\model_train.py", line 5, in from utils.rpn_msr.anchor_target_layer import anchor_target_layer as anchor_target_layer_py File "D:\text-detection-ctpn\utils\rpn_msr\anchor_target_layer.py", line 4, in from utils.bbox.bbox import bbox_overlaps ImportError: No module named 'utils.bbox.bbox'

521alice avatar Jun 11 '19 08:06 521alice

一样

tt0829 avatar Jun 24 '19 10:06 tt0829

找到解决办法了吗

tt0829 avatar Jun 24 '19 10:06 tt0829

找到解决办法了吗

我找到了另外的部署方式 地址是: https://blog.csdn.net/yx123919804/article/details/84377026

521alice avatar Jun 25 '19 06:06 521alice

did you add __init__.py in the relevant folders? I added it to utils and bbox folders.

mrxiaohe avatar Jul 01 '19 13:07 mrxiaohe

You have to build the project, go to utils/bbox and run make.sh. Its easier to run it in linux and I would recommend doing that.

AyushP123 avatar Jul 12 '19 09:07 AyushP123

@mrxiaohe 请问这个问题你能教一下我吗,看了好久都没有解决

yuxiaomu avatar Aug 01 '19 08:08 yuxiaomu

"python setup.py build", then copy the generated .pyd files into bbox folder. It works for me.

yunzhi-wu avatar Aug 18 '19 19:08 yunzhi-wu

@yunzhi-wu imagewhats wrong with me

yuxiaomu avatar Oct 09 '19 08:10 yuxiaomu

did you add init.py in the relevant folders? I added it to utils and bbox folders. yes,but it did‘t soloved.

ldlbest avatar Oct 13 '19 16:10 ldlbest

generated .pyd

Please more details,thanks

ldlbest avatar Oct 13 '19 16:10 ldlbest

"python setup.py build", then copy the generated .pyd files into bbox folder. It works for me. Do I need to write a setup.py by myself?

ldlbest avatar Oct 13 '19 16:10 ldlbest

@ldlbest No, you don't need to write it yourself, its here --> text-detection-ctpn/utils/bbox/setup.py You also might wanna try running everything with python 3.5

SimeonKraev avatar Oct 16 '19 08:10 SimeonKraev

text-detection-ctpn\utils\bbox> python setup.py build it make new "build" folder then copy 2 file in "build\lib.win-amd64-3.6" back to "text-detection-ctpn\utils\bbox"

dangvansam avatar Feb 15 '20 03:02 dangvansam

i have the same problem image image

KKDDD avatar Apr 15 '20 08:04 KKDDD

text-detection-ctpn \ utils \ bbox> python setup.py构建 它以创建新的“ build”文件夹, 然后将“ build \ lib.win-amd64-3.6”中的2个文件复制回“ text-detection-ctpn \ utils \ bbox” ”

i have done this step,but still have errors

KKDDD avatar Apr 15 '20 08:04 KKDDD

You got that eror because no have folder “utils/rpn_msr”. You need to copy folder “rpn_msr” from repo to “utils” and try again

dangvansam avatar Apr 15 '20 13:04 dangvansam

text-detection-ctpn\utils\bbox> python setup.py build it make new "build" folder then copy 2 file in "build\lib.win-amd64-3.6" back to "text-detection-ctpn\utils\bbox"

it works!

gokudera17 avatar May 29 '21 10:05 gokudera17