xiaofengShi / CHINESE-OCR

[python3.6] 运用tf实现自然场景文字检测,keras/pytorch实现ctpn+crnn+ctc实现不定长场景文字OCR识别
2.91k stars 961 forks source link

No module named 'lib.fast_rcnn' #30

Open dreamPoet opened 6 years ago

dreamPoet commented 6 years ago

请问这个该如何解决。。?

D:\Anaconda3\lib\site-packages\h5py__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters Using TensorFlow backend. Traceback (most recent call last): File "demo.py", line 8, in import model File "D:\git\CHINESE-OCR\model.py", line 15, in from ctpn.text_detect import text_detect File "D:\git\CHINESE-OCR\ctpn\text_detect.py", line 4, in from .ctpn.model import ctpn File "D:\git\CHINESE-OCR\ctpn\ctpn\model.py", line 10, in from lib.fast_rcnn.config import cfg ModuleNotFoundError: No module named 'lib.fast_rcnn'

tanzf commented 3 years ago

修改CHINESE-OCR-master\ctpn\ctpn\model.py文件,12-14行代码为: from ..lib.fast_rcnn.config import cfg from ..lib.networks.factory import get_network from ..lib.fast_rcnn.test import test_ctpn 我是这样改的,不报错了