【发布时间】:2019-06-28 06:25:43
【问题描述】:
我想从我的自定义 yolov2 中获取输出作为已识别对象的字典列表。暗流有一个函数 return_predict() ,它做同样的事情,但在创建 tf 服务文件时。我无法提供我的输出层,这样我就会得到类似的结果。
代码链接:https://gist.github.com/sugartom/70b58505bf5f28d1cf5d05904f6c0af2
这里 tfnet.out - 给出一个张量,但我想要预测的类。
例如我想要的结果 - [{'label': 'buckle', 'confidence': 0.32669073, 'topleft': {'x': 368, 'y': 364}, 'bottomright': {'x ':420,'y':414}}]
github 仓库:https://github.com/thtrieu/darkflow
【问题讨论】:
标签: tensorflow deployment object-detection tensorflow-serving yolo