Extracting weights from .caffemodel without caffe installed in Python

后端 未结 4 2199
北恋
北恋 2021-02-09 19:10

Is there a relatively simple way to extract weights in Python from one of the many pretrained models in Caffe Zoo WITHOUT CAFFE (nor pyCaffe)? i.e. parsing .caffe

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-09 19:30

    As it so happens, ethereon made a wonderful library called caffe-tensorflow to convert caffe models to Tensorflow code, but that is not all! It also allows the user to convert .caffemodel files to .npy files without having to build pycaffe! It tests if caffe was built and if not it falls back to a pure google protobuf implementation.

提交回复
热议问题