zoukankan      html  css  js  c++  java
  • caffe_ssd create_data.sh 遇到的问题

    编辑时间:

      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
  • 相关阅读:
    12.3
    团队项目第一阶段冲刺第一天
    4.22
    4.21 re重要功能
    12.1
    12.2
    4.17
    4.16
    css设置子元素相对于父元素保持位置不变(含有滚动条的父元素)
    git操作和npm操作清单
  • 原文地址:https://www.cnblogs.com/Hocker/p/8127818.html
Copyright © 2011-2022 走看看