如何在openvino中扩展blob的暗淡

发布于 2025-01-13 01:01:10 字数 625 浏览 1 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不疑不惑不回忆 2025-01-20 01:01:11

使用 InferenceEngine ::CNNNetwork::reshape 为您的第一个没有批量维度的模型设置新的输入形状。

Use InferenceEngine::CNNNetwork::reshape to set new input shapes for your first model that does not have batch dimension.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文