issue:
ImportError: No module named google.protobuf.internal
Solution:
step1: download protobuf
https://github.com/google/protobuf
step2: compiler and make
$ ./autogen.sh
$ ./configure
$ make
$ make check
$ sudo make install
$ sudo ldconfig # refresh shared library cache.
step3: compiler for python
cd ./python
python setup.py build
python setup.py test
python setup.py install
step4: check version and check with python
protoc --version
python
>>import google.protobuf
issue:
ImportError: No module named pydot
Solution:
pip install pydot
pip install graphviz
or
sudo apt-get install python-pydot
sudo apt-get install graphviz
check command:
python draw_net.py ../models/bvlc_googlenet/deploy.prototxt bvlc_googlenet_deploy_prototxt.png