Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 keras 顺序模型,正常的保存方式是
from keras.models import load_model keras_model.save('classifier_keras.h5') classifier_keras = load_model('classifier_keras.h5')
如果我需要以编码文件的形式存储在数据库中,如何将 keras 模型转换为二进制文件?
HDF5 "model.h5" h5dump -a /layer_names -a /dense_1/weight_names -d /dense_1/dense_1/bias:0 -b LE -o dset.model.bin model.h5