码迷,mamicode.com
首页 > 其他好文 > 详细

caffe_ssd create_data.sh 遇到的问题

时间:2017-12-27 22:35:44      阅读:545      评论:0      收藏:0      [点我收藏+]

标签:protobuf   遇到   rap   __init__   import   google   nal   lib   init   

 

编辑时间:

  2017-12-27  21:42:26

 

问题一:

$./create_data.sh
Traceback (most recent call last):
  File "$(HOME)/workspace/deep_learning/caffe_ssd/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module>
    from caffe.proto import caffe_pb2
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/pycaffe.py", line 13, in <module>
    from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, ImportError: /home/cccp/anaconda2/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21 not found (required by $(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/_caffe.so)
Traceback (most recent call last):
  File "$(HOME)/workspace/deep_learning/caffe_ssd/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module>
    from caffe.proto import caffe_pb2
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/pycaffe.py", line 13, in <module>
    from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, ImportError: /home/cccp/anaconda2/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21 not found (required by $(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/_caffe.so)

解决方案:

$ conda install libgcc

 

问题二

$ ./create_data.sh
Traceback (most recent call last):
  File "$(HOME)/workspace/deep_learning/caffe_ssd/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module>
    from caffe.proto import caffe_pb2
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/pycaffe.py", line 15, in <module>
    import caffe.io
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/io.py", line 2, in <module>
    import skimage.io
ImportError: No module named skimage.io
Traceback (most recent call last):
  File "$(HOME)/workspace/deep_learning/caffe_ssd/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module>
    from caffe.proto import caffe_pb2
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/pycaffe.py", line 15, in <module>
    import caffe.io
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/io.py", line 2, in <module>
    import skimage.io
ImportError: No module named skimage.io

解决方案:

$conda install -c anaconda scikit-image

 

问题三:

./create_data.sh
Traceback (most recent call last):
  File "$(HOME)/workspace/deep_learning/caffe_ssd/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module>
    from caffe.proto import caffe_pb2
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/pycaffe.py", line 15, in <module>
    import caffe.io
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/io.py", line 8, in <module>
    from caffe.proto import caffe_pb2
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/proto/caffe_pb2.py", line 6, in <module>
    from google.protobuf.internal import enum_type_wrapper
ImportError: No module named google.protobuf.internal
Traceback (most recent call last):
  File "$(HOME)/workspace/deep_learning/caffe_ssd/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module>
    from caffe.proto import caffe_pb2
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/pycaffe.py", line 15, in <module>
    import caffe.io
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/io.py", line 8, in <module>
    from caffe.proto import caffe_pb2
  File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/proto/caffe_pb2.py", line 6, in <module>
    from google.protobuf.internal import enum_type_wrapper
ImportError: No module named google.protobuf.internal

 

解决方案:

$ ${ANACONDA2_HOME}/bin/pip install protobuf

 

caffe_ssd create_data.sh 遇到的问题

标签:protobuf   遇到   rap   __init__   import   google   nal   lib   init   

原文地址:https://www.cnblogs.com/Hocker/p/8127818.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!