Yolov4微小的重量转换为keras h5文件 [英] Yolov4 tiny weights convert to keras h5 file

查看:99
本文介绍了Yolov4微小的重量转换为keras h5文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有yolov4微小的砝码和cfg文件,有什么办法将它们转换为h5文件吗?

I have yolov4 tiny weights and cfg file, is there any way convert them to h5 file?

推荐答案

要将任何权重从一种格式转换为另一种格式,您首先需要在模型中加载权重.

To convert any weights from one format to another, you first need to load your model with your weights.

将权重转换为浮点值.这意味着您需要阅读模型每一层的权重

Convert the weights to floating point values. This means you need to read the weights for each layer of your model

然后使用特定的库(在您的情况下为Keras)将权重保存为所需的格式.

Then save the weights to a format you desire using the specific library (in your case Keras).

您可以参考以下链接,了解如何将权重转换为.h5

You can refer to the below link on how to convert the weights to .h5

http://dsbyprateekg.blogspot.com/2020/06/how-to-convert-your-yolov4-weights-to.html?m = 1

这篇关于Yolov4微小的重量转换为keras h5文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆