<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:How does the REST API for OVMS work? in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1428403#M28562</link>
    <description>&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Hi RalphW,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Thanks for your information.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;May I know which demo application are you using? Referring to sample code from &lt;/SPAN&gt;&lt;A href="https://github.com/openvinotoolkit/model_server/tree/develop/client/python/kserve-api/samples#kserve-api-usage-samples" rel="noopener noreferrer" target="_blank" style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;KServe API usage samples&lt;/A&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;, there is no &lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 16px;"&gt;--data-binary&lt;/SPAN&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt; command but &lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 16px;"&gt;--binary_data&lt;/SPAN&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt; command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;On another note, could you please follow the steps from &lt;/SPAN&gt;&lt;A href="https://github.com/openvinotoolkit/model_server/tree/develop/client/python/kserve-api/samples#run-the-client-to-perform-inference-with-binary-encoded-image--1" rel="noopener noreferrer" target="_blank" style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Run the Client to perform inference with binary encoded image&lt;/A&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt; in &lt;/SPAN&gt;&lt;A href="https://github.com/openvinotoolkit/model_server/tree/develop/client/python/kserve-api/samples#kserve-api-usage-samples" rel="noopener noreferrer" target="_blank" style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;KServe API usage samples&lt;/A&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt; and see if you still encounter the same issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Wan&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Nov 2022 09:22:02 GMT</pubDate>
    <dc:creator>Wan_Intel</dc:creator>
    <dc:date>2022-11-08T09:22:02Z</dc:date>
    <item>
      <title>How does the REST API for OVMS work?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1428181#M28546</link>
      <description>&lt;P&gt;I have an OVMS running in a docker container and tried to use the KServe API via HTTP according to the following documentation:&amp;nbsp;&lt;A href="https://docs.openvino.ai/latest/ovms_docs_binary_input_kfs.html#doxid-ovms-docs-binary-input-kfs" target="_blank"&gt;https://docs.openvino.ai/latest/ovms_docs_binary_input_kfs.html#doxid-ovms-docs-binary-input-kfs.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The container was started as follows:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;docker run -d --rm -u $(id -u):$(id -g) -v $(pwd)/model:/models/face-detection -p 9000:9000 -p 9001:9001 openvino/model_server:latest --model_path /models/face-detection --model_name face-detection --port 9000 --rest_port 9001 --plugin_config '{"CPU_THROUGHPUT_STREAMS": "1"}' --shape auto --log_level DEBUG /bin/bash --layout NHWC:NCHW&lt;/P&gt;
&lt;P&gt;To launch the inference I called:&lt;/P&gt;
&lt;P&gt;curl -H "Content-Type: application/octet-stream" -H "Inference-Header-Content-Length: 141" &lt;A href="http://192.168.121.123:9001/v2/models/face-detection/infer" target="_blank"&gt;http://192.168.121.123:9001/v2/models/face-detection/infer&lt;/A&gt; -d '{"model_name":"face-detection", "inputs":[{"name":"model_input", "shape":[1],"datatype":"BYTES","parameters":{"binary_data_size":"210765"}}]}' --data-binary @images/people1.jpeg&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and got {"error": "Missing input with specific name - Required input: data"} as the result, so it seems OVMS is expecting the "data" field to be present&amp;nbsp; in the inference header - but if I got the documentation right, that field is not required when the binary extensions is used, instead the image should simply be appended to the inference header. Any idea how the request should look like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:40:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1428181#M28546</guid>
      <dc:creator>RalphW</dc:creator>
      <dc:date>2022-11-07T17:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: How does the REST API for OVMS work?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1428334#M28558</link>
      <description>&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;Hi RalphW,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;Thanks for reaching out to us.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;Yes, you are right. The error you encountered:&lt;FONT face="courier new,courier"&gt; "error": "Missing input with specific name - Required input: data"&lt;/FONT&gt; was due to OpenVINO™ Model Server expecting the &lt;FONT face="courier new,courier"&gt;“data”&lt;/FONT&gt; field to be present.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;On another note, are you using &lt;/SPAN&gt;&lt;A style="font-family: Helvetica, sans-serif; font-size: 16px;" href="https://docs.openvino.ai/latest/omz_models_model_face_detection_adas_0001.html#face-detection-adas-0001" target="_blank" rel="noopener noreferrer"&gt;face-detection-adas-0001&lt;/A&gt;&lt;SPAN&gt; from &lt;/SPAN&gt;&lt;A style="font-family: Helvetica, sans-serif; font-size: 16px;" href="https://docs.openvino.ai/latest/omz_models_group_intel.html#overview-of-openvino-toolkit-intel-s-pre-trained-models" target="_blank" rel="noopener noreferrer"&gt;Intel’s Pre-Trained model&lt;/A&gt;&lt;SPAN&gt;? For your information, the &lt;/SPAN&gt;&lt;A style="font-family: Helvetica, sans-serif; font-size: 16px;" href="https://docs.openvino.ai/latest/omz_models_model_face_detection_adas_0001.html#inputs" target="_blank" rel="noopener noreferrer"&gt;input name&lt;/A&gt;&lt;SPAN&gt; for face-detection-adas-0001 is &lt;FONT face="courier new,courier"&gt;“data”&lt;/FONT&gt;. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;Could you please change the input name to &lt;FONT face="courier new,courier"&gt;data&lt;/FONT&gt; instead of &lt;FONT face="courier new,courier"&gt;model_input&lt;/FONT&gt; and see if your issue was able to resolve?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;Wan&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 03:58:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1428334#M28558</guid>
      <dc:creator>Wan_Intel</dc:creator>
      <dc:date>2022-11-08T03:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: How does the REST API for OVMS work?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1428389#M28561</link>
      <description>&lt;P&gt;Hi Wan,&lt;/P&gt;
&lt;P&gt;Thanks for your answer, I'm indeed a step further now!&lt;/P&gt;
&lt;P&gt;I'm following the&amp;nbsp;&lt;A href="https://docs.openvino.ai/latest/ovms_docs_quick_start_guide.html" target="_self"&gt;OVMS Quick Start Guide&lt;/A&gt;&amp;nbsp;that uses model&amp;nbsp;&lt;A href="http:// https://storage.openvinotoolkit.org/repositories/open_model_zoo/2022.1/models_bin/2/face-detection-retail-0004/FP32/face-detection-retail-0004.xml" target="_self"&gt;face-detection-retail-0004&lt;/A&gt;, that has indeed data as input name.&lt;/P&gt;
&lt;P&gt;Now I'm getting the following error:&amp;nbsp;{"error": "Image parsing failed"} with the image "people1.jpeg" that was used in the quick start guide.&lt;/P&gt;
&lt;P&gt;I know that the shape of the image (1200x800) doesn't match the model's specification, but I thought that OVMS would resize the image accordingly. Would you have some suggestions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ralph&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:46:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1428389#M28561</guid>
      <dc:creator>RalphW</dc:creator>
      <dc:date>2022-11-08T08:46:57Z</dc:date>
    </item>
    <item>
      <title>Re:How does the REST API for OVMS work?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1428403#M28562</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Hi RalphW,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Thanks for your information.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;May I know which demo application are you using? Referring to sample code from &lt;/SPAN&gt;&lt;A href="https://github.com/openvinotoolkit/model_server/tree/develop/client/python/kserve-api/samples#kserve-api-usage-samples" rel="noopener noreferrer" target="_blank" style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;KServe API usage samples&lt;/A&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;, there is no &lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 16px;"&gt;--data-binary&lt;/SPAN&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt; command but &lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 16px;"&gt;--binary_data&lt;/SPAN&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt; command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;On another note, could you please follow the steps from &lt;/SPAN&gt;&lt;A href="https://github.com/openvinotoolkit/model_server/tree/develop/client/python/kserve-api/samples#run-the-client-to-perform-inference-with-binary-encoded-image--1" rel="noopener noreferrer" target="_blank" style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Run the Client to perform inference with binary encoded image&lt;/A&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt; in &lt;/SPAN&gt;&lt;A href="https://github.com/openvinotoolkit/model_server/tree/develop/client/python/kserve-api/samples#kserve-api-usage-samples" rel="noopener noreferrer" target="_blank" style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;KServe API usage samples&lt;/A&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt; and see if you still encounter the same issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Wan&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Nov 2022 09:22:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1428403#M28562</guid>
      <dc:creator>Wan_Intel</dc:creator>
      <dc:date>2022-11-08T09:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does the REST API for OVMS work?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1428415#M28563</link>
      <description>&lt;P&gt;Hi Wan,&lt;/P&gt;
&lt;P&gt;thanks again for the quick answer. In the mean time I found the issue. When using multiple -d (or --dataxxxx) options,&amp;nbsp; curl concatenates them, but with ampersands - so with my curl call the image was proceeded with &amp;amp; - thus, the encoding failed.&lt;/P&gt;
&lt;P&gt;I found no solution that would send the correct request with just curl commandline options - but by appending the json header to the image and storing that to a file first I got a valid response from OVMS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;Ralph&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 09:57:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1428415#M28563</guid>
      <dc:creator>RalphW</dc:creator>
      <dc:date>2022-11-08T09:57:16Z</dc:date>
    </item>
    <item>
      <title>Re:How does the REST API for OVMS work?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1429024#M28589</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Hi RalphW,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Glad to know that you have solved your issue and thanks for sharing your answer in the community.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 16px;"&gt;Wan&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Nov 2022 08:31:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/How-does-the-REST-API-for-OVMS-work/m-p/1429024#M28589</guid>
      <dc:creator>Wan_Intel</dc:creator>
      <dc:date>2022-11-10T08:31:30Z</dc:date>
    </item>
  </channel>
</rss>

