You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Pierluigiferrari and everyone,
I want to convert an FSSD.caffe model (COCO models - https://github.com/lzx1413/CAFFE_SSD/tree/fssd) to an HDF5 file (keras).
I use Python = 3.6.5, caffe =1.0, h5py = 2.7.1 which are installed by anaconda3
I follow your source code and here is code that I wrote:
from caffe_weight_converter import convert_caffemodel_to_keras, convert_caffemodel_to_dict
output_filename = './output'
prototxt_filename = './models/deploy.prototxt'
caffemodel_filename = './models/VGG_coco_SSD_300x300_iter_400000.caffemodel'
cm = convert_caffemodel_to_keras(output_filename,
prototxt_filename,
caffemodel_filename,
include_layers_without_weights=False,
include_unknown_layer_types=True,
keras_backend='tf',
verbose=True)
When running source code I got error:
[libprotobuf ERROR google/protobuf/text_format.cc:288] Error parsing text-format caffe.NetParameter: 814:14: Message type "caffe.LayerParameter" has no field named "norm_param".
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0507 20:49:23.393383 25808 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /media/hieu/Data/Deep_leaning/Keras/convert_caffe_to_keras/caffe_weight_converter-master/models/deploy.prototxt
*** Check failure stack trace: ***
Please help me to solve this error
Thank you very much!
The text was updated successfully, but these errors were encountered:
You haven't installed Caffe properly and/or installed the wrong version. Note that you must install the correct version of Caffe that the model requires that you are trying to convert.
The issue you're having has already been solved before in #3.
You're welcome and good luck! Check the repository of the Caffe model you're trying to convert, it probably comes with some instructions as to which Caffe version to install and how to install it.
Hello Pierluigiferrari and everyone,
I want to convert an FSSD.caffe model (COCO models - https://github.com/lzx1413/CAFFE_SSD/tree/fssd) to an HDF5 file (keras).
I use Python = 3.6.5, caffe =1.0, h5py = 2.7.1 which are installed by anaconda3
I follow your source code and here is code that I wrote:
from caffe_weight_converter import convert_caffemodel_to_keras, convert_caffemodel_to_dict
output_filename = './output'
prototxt_filename = './models/deploy.prototxt'
caffemodel_filename = './models/VGG_coco_SSD_300x300_iter_400000.caffemodel'
cm = convert_caffemodel_to_keras(output_filename,
prototxt_filename,
caffemodel_filename,
include_layers_without_weights=False,
include_unknown_layer_types=True,
keras_backend='tf',
verbose=True)
When running source code I got error:
[libprotobuf ERROR google/protobuf/text_format.cc:288] Error parsing text-format caffe.NetParameter: 814:14: Message type "caffe.LayerParameter" has no field named "norm_param".
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0507 20:49:23.393383 25808 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /media/hieu/Data/Deep_leaning/Keras/convert_caffe_to_keras/caffe_weight_converter-master/models/deploy.prototxt
*** Check failure stack trace: ***
Please help me to solve this error
Thank you very much!
The text was updated successfully, but these errors were encountered: