facebookarchive / caffe2

Caffe2 is a lightweight, modular, and scalable deep learning framework.
https://caffe2.ai
Apache License 2.0
8.42k stars 1.95k forks source link

caffe moedel change to caffe2 error: too few arguments #1139

Open chendaming opened 7 years ago

chendaming commented 7 years ago

python -m caffe2.python.caffe_translator deploy.prototxt WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode. WARNING:root:Debug message: No module named caffe2_pybind11_state_gpu If you are using homebrew leveldb on a Mac OS, you might see an error warning you that malloc_zone_unregister() failed. This is not a caffe2 issue but is due to the homebrew leveldb having an incompatible memory allocator. It does not affect usage. usage: caffe_translator.py [-h] [--init_net INIT_NET] [--predict_net PREDICT_NET] prototext caffemodel caffe_translator.py: error: too few arguments

jerryzh168 commented 7 years ago

You'll need a deploy.prototxt and a ".caffemodel" file which contains the weights in the net. Looks like you are missing the second argument.