caffe_ssd create_data.sh 遇到的问题

Posted weather

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

 

以上是关于caffe_ssd create_data.sh 遇到的问题的主要内容,如果未能解决你的问题,请参考以下文章

ImportError: No module named caffe.proto解决办法

d1,一,写一个脚本,统计日志每一分钟的bps之和

caffe_ssd_踩坑

caffe_ssd学习-用自己的数据做训练

物体检测算法 SSD 的训练和测试

caffe在进行图片数据转化的时候报错create_annoset.py: error: too few arguments