其他分享
首页 > 其他分享> > MaskTextSpotterV3报错

MaskTextSpotterV3报错

作者:互联网


(MaskTextSpotterV3) xuehp@haomeiya004:~/git/MaskTextSpotterV3$ python tools/demo.py
Traceback (most recent call last):
  File "tools/demo.py", line 6, in <module>
    from maskrcnn_benchmark.modeling.detector import build_detection_model
  File "/home/xuehp/git/MaskTextSpotterV3/maskrcnn_benchmark/modeling/detector/__init__.py", line 2, in <module>
    from .detectors import build_detection_model
  File "/home/xuehp/git/MaskTextSpotterV3/maskrcnn_benchmark/modeling/detector/detectors.py", line 3, in <module>
    from .generalized_rcnn import GeneralizedRCNN
  File "/home/xuehp/git/MaskTextSpotterV3/maskrcnn_benchmark/modeling/detector/generalized_rcnn.py", line 12, in <module>
    from ..backbone import build_backbone
  File "/home/xuehp/git/MaskTextSpotterV3/maskrcnn_benchmark/modeling/backbone/__init__.py", line 2, in <module>
    from .backbone import build_backbone
  File "/home/xuehp/git/MaskTextSpotterV3/maskrcnn_benchmark/modeling/backbone/backbone.py", line 53, in <module>
    from maskrcnn_benchmark.modeling.make_layers import conv_with_kaiming_uniform
  File "/home/xuehp/git/MaskTextSpotterV3/maskrcnn_benchmark/modeling/make_layers.py", line 10, in <module>
    from maskrcnn_benchmark.layers import Conv2d
  File "/home/xuehp/git/MaskTextSpotterV3/maskrcnn_benchmark/layers/__init__.py", line 9, in <module>
    from .nms import nms
  File "/home/xuehp/git/MaskTextSpotterV3/maskrcnn_benchmark/layers/nms.py", line 6, in <module>
    from apex import amp
  File "/home/xuehp/anaconda3/envs/MaskTextSpotterV3/lib/python3.7/site-packages/apex/__init__.py", line 13, in <module>
    from pyramid.session import UnencryptedCookieSessionFactoryConfig
ImportError: cannot import name 'UnencryptedCookieSessionFactoryConfig' from 'pyramid.session' (unknown location)

标签:py,benchmark,maskrcnn,xuehp,报错,import,MaskTextSpotterV3
来源: https://www.cnblogs.com/xuehuiping/p/14513317.html