2017-09-08 3 views
0
[email protected]:~/object_detection_5cls/caffe/python$ python draw_net.py ../examples/mnist/lenet_train_test.prototxt lenet.png 
Traceback (most recent call last): 
    File "draw_net.py", line 8, in <module> 
    import caffe 
    File "/home/ezio/object_detection_5cls/caffe/python/caffe/__init__.py", line 1, in <module> 
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver 
    File "/home/ezio/object_detection_5cls/caffe/python/caffe/pycaffe.py", line 13, in <module> 
    from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \ 
ImportError: /home/ezio/object_detection_5cls/caffe/python/caffe/../../build/lib/libcaffe.so.1.0.0-rc3: undefined symbol: _ZNK7leveldb6Status8ToStringB5cxx11Ev 

Ich habe ran make pycaffe; make all; make test; make runtest und diese sind alle bestanden. MNIST und CIFAR10 Demo sind auch wie erwartet. , aber wenn ich versuche, das Netz zu zeichnen, trat ein Fehler wie oben auf. Ich installierte libleveldb von sudo apt-get install libleveldb-dev Kann mir jemand helfen?Fehler bei der Ausführung "Python Draw_net.py"

Antwort

0

Nun, ich habe diesen Fehler behoben.

Führen Sie einfach sudo python draw_net.py

Aber etwas anderes falsch: no module named google-protobuf und no module named skimage.io

Dann habe ich sudo apt-get install python-protobuf und sudo apt-get install python-skimage diese Pakete

Zurück zur sudo python draw_net.py your_net.protobuf your_net.png zu installieren. Eine Image-Datei wird im Ordner caffe_root/python

erstellt
Verwandte Themen