When training SSD model based on cafe with our own data, we need to convert the image data into LMDB format. The script file used is create provided in SSD source code_ Data.sh (specific location is in $Cafe)_ ROOT/data/VOC0712/create_ Take a copy of it and give it its own name, such as create_ scenetext_ Data. Sh, and then modify the path according to your actual situation
After modification, execute the command shcreate_ Data.sh, the following error may appear:
[lisiqi@l22-240-142 caffe]$ sh create_lmdbdata_scenetext.sh
Traceback (most recent call last):
File "/data/home/lisiqi/my_SSD/caffe/scripts/create_annoset.py", line 7, in <module> from caffe.proto import caffe_pb2 ImportError: No module named caffe.proto Traceback (most recent call last): File "/data/home/lisiqi/my_SSD/caffe/scripts/create_annoset.py", line 7, in <module> from caffe.proto import caffe_pb2 ImportError: No module named caffe.proto
Possible reason: in this case, the path of Python related content in cafe is not added to the compile path of Python
Solution:
Execute the order
export PYTHONPATH=$CAFFE_ROOT/python:$PYTHONPATH
Of which, $Cafe_ Root is the path to download SSD source code. For example, mine is/data/home/lisiqi/my_ SSD/caffe
Note: the above method is only one-time, run create again next time_ scenetext_ Data. Sh, you need to do the above operation
Similar Posts:
- Caffe Install ImportError: No module named google.protobuf.internal
- Caffe installation and compilation problems – importerror: no module named skimage.io
- Solution of import Cafe error reporting in Python command line
- caffe2——–ImportError: No module named past.builtins
- [Solved] Protobuf & cmake Low Version Error: Could not find a package configuration file provided by “Protobuf” with any of the following names: ProtobufConfig.cmake
- Gunicorn starts with an error gunicorn.errors.haltserver
- Error in installing Python 3.7 in CentOS 7.6 zipimport.ZipImportError : can’t decompress data; zlib not available
- PIP install troubleshooting under Windows [How to Solve]
- docker:ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
- [Solved] ModuleNotFoundError: No module named’usysconfigdata u x86 64-u-gnu’