keras - 如何加载 .bin 模型文件?

标签 keras deep-learning pytorch dlib

最近,我一直在研究年龄和性别识别问题。在搜索现有解决方案时,我遇到了一个 Open Vino 工具包。 https://docs.openvinotoolkit.org/

他们使用许多模型来完成深度学习任务,其中之一是 https://docs.openvinotoolkit.org/latest/_models_intel_age_gender_recognition_retail_0013_description_age_gender_recognition_retail_0013.html

现在这些模型可以免费使用并且可以轻松下载。我下载了模型 zip 文件夹,其中包含一个 .xml 文件。该文件显示了层和每层中的维度以及有关模型结构的其他有用信息。 另一个文件是 .bin 文件,这个(我猜)是真实的模型文件,但我不知道如何加载保存为 .bin 文件的模型。

The image attached contain the content of the .xml file 需要帮忙。

最佳答案

你应该在你的电脑上安装 openvino 工具包。并在部署工具文件夹中找到 object_detecction_ssd.py 文件,该文件将存储在 openvino 工具包的安装文件夹中。然后您可以将 XMl 和 bin 文件作为参数传递给 python 文件。

关于keras - 如何加载 .bin 模型文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59477176/

相关文章:

parallel-processing - Tensorflow - 是否可以手动决定图中的哪些张量进入 GPU 和 CPU?

python - Pytorch 批量矩阵向量外积

python - 如何将 pytorch 张量列表分离到数组

keras - 如何在每个纪元后保存 mlflow 中的损失和准确性指标?

python - 用于 Transformer DNN 模型的基于时间序列的数据的位置编码

keras - 使用 Keras 进行元素乘法

python - 运行时错误: expected scalar type Long but found Int in loss = criterion(outputs, y_train)

pytorch - 如何使用 pytorch-lightning 将模型权重保存到 mlflow 跟踪服务器?

python - 值错误 : You are trying to load a weight file containing 16 layers into a model with 0 layers

machine-learning - Keras:为什么 'accuracy' 高于 'val_acc' ?