You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportError: cannot import name 'bbox' from partially initialized module 'lib.utils' (most likely due to a circular import) (/home/barry/Github/chinese_ocr/ctpn/lib/utils/__init__.py)
#481
Open
Barry1915 opened this issue
Sep 1, 2021
· 3 comments
Traceback (most recent call last):
File "/home/barry/Github/chinese_ocr/demo.py", line 3, in
import ocr
File "/home/barry/Github/chinese_ocr/ocr.py", line 10, in
from ctpn.text_detect import text_detect
File "/home/barry/Github/chinese_ocr/ctpn/text_detect.py", line 6, in
from lib.utils.timer import Timer
File "/home/barry/Github/chinese_ocr/ctpn/lib/init.py", line 1, in
from . import fast_rcnn
File "/home/barry/Github/chinese_ocr/ctpn/lib/fast_rcnn/init.py", line 2, in
from . import train
File "/home/barry/Github/chinese_ocr/ctpn/lib/fast_rcnn/train.py", line 5, in
from ..roi_data_layer.layer import RoIDataLayer
File "/home/barry/Github/chinese_ocr/ctpn/lib/roi_data_layer/init.py", line 1, in
from . import roidb
File "/home/barry/Github/chinese_ocr/ctpn/lib/roi_data_layer/roidb.py", line 5, in
from lib.utils.bbox import bbox_overlaps
File "/home/barry/Github/chinese_ocr/ctpn/lib/utils/init.py", line 4, in
from . import bbox
ImportError: cannot import name 'bbox' from partially initialized module 'lib.utils' (most likely due to a circular import) (/home/barry/Github/chinese_ocr/ctpn/lib/utils/init.py)
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "/home/barry/Github/chinese_ocr/demo.py", line 3, in
import ocr
File "/home/barry/Github/chinese_ocr/ocr.py", line 10, in
from ctpn.text_detect import text_detect
File "/home/barry/Github/chinese_ocr/ctpn/text_detect.py", line 6, in
from lib.utils.timer import Timer
File "/home/barry/Github/chinese_ocr/ctpn/lib/init.py", line 1, in
from . import fast_rcnn
File "/home/barry/Github/chinese_ocr/ctpn/lib/fast_rcnn/init.py", line 2, in
from . import train
File "/home/barry/Github/chinese_ocr/ctpn/lib/fast_rcnn/train.py", line 5, in
from ..roi_data_layer.layer import RoIDataLayer
File "/home/barry/Github/chinese_ocr/ctpn/lib/roi_data_layer/init.py", line 1, in
from . import roidb
File "/home/barry/Github/chinese_ocr/ctpn/lib/roi_data_layer/roidb.py", line 5, in
from lib.utils.bbox import bbox_overlaps
File "/home/barry/Github/chinese_ocr/ctpn/lib/utils/init.py", line 4, in
from . import bbox
ImportError: cannot import name 'bbox' from partially initialized module 'lib.utils' (most likely due to a circular import) (/home/barry/Github/chinese_ocr/ctpn/lib/utils/init.py)
The text was updated successfully, but these errors were encountered: