如何在openvino中扩展blob的暗淡
OpenVINO 初学者您好。在官方教程中,最佳的采取方式级联网络的输入是
auto output = infer_request1.GetBlob(output_name);
infer_request2.SetBlob(input_name, output);
但是,就我而言,输出的布局是 CHW
但下一个网络的输入具有 NCHW
布局。那么我怎样才能有效地重塑或扩展输出的暗淡呢?或者有没有更好的方法将 blob 提供给我的下一个模型?
我尝试了 input_info->setLayout(Layout::CHW);
,它取自 openvino 的 hello_classification
示例,但它没有完成任务(我想我误解了这个功能)。
Hello from a beginner of OpenVINO. In the official tutorial, the optimal way of taking input for a cascade of networks is
auto output = infer_request1.GetBlob(output_name);
infer_request2.SetBlob(input_name, output);
However, in my case, the output's layout is CHW
but the next network's input has an NCHW
layout. So how could I reshape, or extend the dims of output
effectively? Or is there any better way to feed blob to the next model in my case?
I tried input_info->setLayout(Layout::CHW);
, which is taken from openvino's hello_classification
example, but it didn't do the job (I think I misunderstood this function).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 InferenceEngine ::CNNNetwork::reshape 为您的第一个没有批量维度的模型设置新的输入形状。
Use InferenceEngine::CNNNetwork::reshape to set new input shapes for your first model that does not have batch dimension.