Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.

Dynamic batch size example python

Lechatellier__Brice1
289 Views

Is there an example to run dynamic batch sizing in python with the 2019_r2 openvino sdk?

Running into issues because of the shape of the inputs:

ValueError: could not broadcast input array from shape (2,3,227,227) into shape (1,3,227,227)

 

0 Kudos
1 Reply
Shubha_R_Intel
Employee
288 Views

Dear Lechatellier, Brice,

You are correct - there is no Dynamic Batching Python Sample at this time.

Below is a document that teaches you how to do Dynamic Batching in C++  (sample code is provided).

http://docs.openvinotoolkit.org/latest/_docs_IE_DG_DynamicBatching.html

It should be fairly straightforward to convert to Python, but I guess it isn't ? I think the key is understanding get_config and set_config.

Please take a look at the Inference Engine Python Doc where get_config and set_config are discussed.

Did you already take a look at these resources ?

Let me know,

Thanks,

Shubha

 

 

Reply