YunYang1994 / tensorflow-yolov3

🔥 TensorFlow Code for technical report: "YOLOv3: An Incremental Improvement"
https://yunyang1994.gitee.io/2018/12/28/YOLOv3-算法的一点理解/
MIT License
3.63k stars 1.36k forks source link

yolo pb模型部署安卓端 #409

Open 774219268 opened 4 years ago

774219268 commented 4 years ago

想问下yolo3 pb模型在训练出来后,有三个输出节点name,但是有要部署到tensorflow安卓端demo上,却只有一个output_name,怎么办????谢谢大神们了 private static final String YOLO_MODEL_FILE = "file:///android_asset/yolov3_coco_demo_2.pb"; private static final int YOLO_INPUT_SIZE = 416; private static final String YOLO_INPUT_NAME = "input/input_data:0"; private static final String YOLO_OUTPUT_NAMES = "pred_sbbox/concat_2"; private static final int YOLO_BLOCK_SIZE = 32;

Byronnar commented 4 years ago

这个可以 将三个输出节点 通过concat 拼接成一个, 参考我这个 serving部署(https://github.com/Byronnar/tensorflow-serving-yolov3), 另外, 你转换成tflite的脚本方便公开吗,有问题可以一起讨论.

774219268 commented 4 years ago

我的微信15348365038

------------------ 原始邮件 ------------------ 发件人: "Byronnar"<notifications@github.com>; 发送时间: 2019年11月20日(星期三) 上午9:33 收件人: "YunYang1994/tensorflow-yolov3"<tensorflow-yolov3@noreply.github.com>; 抄送: "烧火棍"<774219268@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [YunYang1994/tensorflow-yolov3] yolo pb模型部署安卓端 (#409)

这个可以 将三个输出节点 通过concat 拼接成一个, 参考我这个 serving部署(https://github.com/Byronnar/tensorflow-serving-yolov3), 另外, 你转换成tflite的脚本方便公开吗,有问题可以一起讨论.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

hry8310 commented 4 years ago

同一套框架不同平台都有坑哦

774219268 commented 4 years ago

怎么说朋友。方便加个微信一起探讨吗?

------------------ 原始邮件 ------------------ 发件人: "hry8310"<notifications@github.com>; 发送时间: 2019年11月27日(星期三) 上午9:12 收件人: "YunYang1994/tensorflow-yolov3"<tensorflow-yolov3@noreply.github.com>; 抄送: "烧火棍"<774219268@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [YunYang1994/tensorflow-yolov3] yolo pb模型部署安卓端 (#409)

同一套框架不同平台都有坑哦

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

hry8310 commented 4 years ago

QQ247403822,微信:13417734715.我没有做过这个迁移,给不了你什么建议排

------------------ 原始邮件 ------------------ 发件人: "774219268"<notifications@github.com>; 发送时间: 2019年11月27日(星期三) 上午9:13 收件人: "YunYang1994/tensorflow-yolov3"<tensorflow-yolov3@noreply.github.com>; 抄送: "黄日燕-男的"<247403822@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [YunYang1994/tensorflow-yolov3] yolo pb模型部署安卓端 (#409)

怎么说朋友。方便加个微信一起探讨吗?

------------------&nbsp;原始邮件&nbsp;------------------ 发件人: "hry8310"<notifications@github.com&gt;;
发送时间: 2019年11月27日(星期三) 上午9:12 收件人: "YunYang1994/tensorflow-yolov3"<tensorflow-yolov3@noreply.github.com&gt;;
抄送: "烧火棍"<774219268@qq.com&gt;; "Author"<author@noreply.github.com&gt;;
主题: Re: [YunYang1994/tensorflow-yolov3] yolo pb模型部署安卓端 (#409)

同一套框架不同平台都有坑哦

&mdash; You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

774219268 commented 4 years ago

pb转tflite您这边有做过吗?

------------------ 原始邮件 ------------------ 发件人: "hry8310"<notifications@github.com>; 发送时间: 2019年11月27日(星期三) 上午9:16 收件人: "YunYang1994/tensorflow-yolov3"<tensorflow-yolov3@noreply.github.com>; 抄送: "烧火棍"<774219268@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [YunYang1994/tensorflow-yolov3] yolo pb模型部署安卓端 (#409)

QQ247403822,微信:13417734715.我没有做过这个迁移,给不了你什么建议排

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"774219268"<notifications@github.com&gt;; 发送时间:&nbsp;2019年11月27日(星期三) 上午9:13 收件人:&nbsp;"YunYang1994/tensorflow-yolov3"<tensorflow-yolov3@noreply.github.com&gt;; 抄送:&nbsp;"黄日燕-男的"<247403822@qq.com&gt;;"Comment"<comment@noreply.github.com&gt;; 主题:&nbsp;Re: [YunYang1994/tensorflow-yolov3] yolo pb模型部署安卓端 (#409)

怎么说朋友。方便加个微信一起探讨吗?

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人: "hry8310"<notifications@github.com&amp;gt;;
发送时间: 2019年11月27日(星期三) 上午9:12
收件人: "YunYang1994/tensorflow-yolov3"<tensorflow-yolov3@noreply.github.com&amp;gt;;
抄送: "烧火棍"<774219268@qq.com&amp;gt;; "Author"<author@noreply.github.com&amp;gt;;
主题: Re: [YunYang1994/tensorflow-yolov3] yolo pb模型部署安卓端 (#409)

同一套框架不同平台都有坑哦

&amp;mdash;
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

hry8310 commented 4 years ago

这个没有。只试过将checkpoint 朱换成 pb文件

------------------ 原始邮件 ------------------ 发件人: "774219268"<notifications@github.com>; 发送时间: 2019年11月27日(星期三) 上午9:18 收件人: "YunYang1994/tensorflow-yolov3"<tensorflow-yolov3@noreply.github.com>; 抄送: "黄日燕-男的"<247403822@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [YunYang1994/tensorflow-yolov3] yolo pb模型部署安卓端 (#409)

pb转tflite您这边有做过吗?

------------------&nbsp;原始邮件&nbsp;------------------ 发件人: "hry8310"<notifications@github.com&gt;;
发送时间: 2019年11月27日(星期三) 上午9:16 收件人: "YunYang1994/tensorflow-yolov3"<tensorflow-yolov3@noreply.github.com&gt;;
抄送: "烧火棍"<774219268@qq.com&gt;; "Author"<author@noreply.github.com&gt;;
主题: Re: [YunYang1994/tensorflow-yolov3] yolo pb模型部署安卓端 (#409)

QQ247403822,微信:13417734715.我没有做过这个迁移,给不了你什么建议排

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;&quot;774219268&quot;<notifications@github.com&amp;gt;;
发送时间:&amp;nbsp;2019年11月27日(星期三) 上午9:13
收件人:&amp;nbsp;&quot;YunYang1994/tensorflow-yolov3&quot;<tensorflow-yolov3@noreply.github.com&amp;gt;;
抄送:&amp;nbsp;&quot;黄日燕-男的&quot;<247403822@qq.com&amp;gt;;&quot;Comment&quot;<comment@noreply.github.com&amp;gt;;
主题:&amp;nbsp;Re: [YunYang1994/tensorflow-yolov3] yolo pb模型部署安卓端 (#409)

怎么说朋友。方便加个微信一起探讨吗?

------------------&amp;amp;nbsp;原始邮件&amp;amp;nbsp;------------------
发件人: &quot;hry8310&quot;<notifications@github.com&amp;amp;gt;;
发送时间: 2019年11月27日(星期三) 上午9:12
收件人: &quot;YunYang1994/tensorflow-yolov3&quot;<tensorflow-yolov3@noreply.github.com&amp;amp;gt;;
抄送: &quot;烧火棍&quot;<774219268@qq.com&amp;amp;gt;; &quot;Author&quot;<author@noreply.github.com&amp;amp;gt;;
主题: Re: [YunYang1994/tensorflow-yolov3] yolo pb模型部署安卓端 (#409)

同一套框架不同平台都有坑哦

&amp;amp;mdash;
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
&mdash; You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

zxj11838 commented 4 years ago

@774219268 请问您从pb转换到tflite成功了吗?在Android端部署成功了吗?

hry8310 commented 4 years ago

没有呢

------------------ 原始邮件 ------------------ 发件人: "zxj11838"<notifications@github.com>; 发送时间: 2020年4月21日(星期二) 上午10:37 收件人: "YunYang1994/tensorflow-yolov3"<tensorflow-yolov3@noreply.github.com>; 抄送: "黄日燕-男的"<247403822@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [YunYang1994/tensorflow-yolov3] yolo pb模型部署安卓端 (#409)

@774219268 请问您从pb转换到tflite成功了吗?在Android端部署成功了吗?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.