Community
cancel
Showing results for 
Search instead for 
Did you mean: 
100 Views

Need help running a custom model in openvino

Hi All,

I am trying to run model given in this link on openvino.

As per I understand the liveliness detector in the link uses a custom trained keras model,  I have used openvino sdk but didn't find any code which could be used for inference of custom model.

Any help on step to getting it working on openvino would be really helpful.

 

Thanks,

Abhishek

0 Kudos
5 Replies
SuryaPSC_Intel
Employee
100 Views

Hi Abhishek,

To convert your custom model. Kindly refer to convert tensorflow models.

Since this model is a Keras model, you will have to convert it to a frozen tensorflow model before feeding it to model optimizer.

Best Regards,

Surya

 

 

100 Views

Hi,

I got the model converted to tensorflow model and used the mo_tf.py file to create openvino model.

Which sample code should I use to get the model working?  In case no sample code are available are there any guides on building the sources for custom model?

 

Thanks,

Abhishek

SuryaPSC_Intel
Employee
100 Views

Hi Abhishek,

You can refer to the demos provided with OpenVINO and geneate your own code as per your use case..

Best Regards,

Surya

100 Views

Hi,

 

I have worked with some of the sample application shared with sdk,  I notice that sample codes has only code for converting the image to input to blob and pushing it to a list of blobs, and submitting the list of blobs for inference by calling function submitRequest.

The code for inference engine/loading the model is abstracted (Which I assume needs to be modified to fit in the newly created model by us).  Not sure if the sources are open and provided with SDK..  

Can you please let me know if my understand is correct?

 

Thanks,

Abhishek

SuryaPSC_Intel
Employee
100 Views

Hi Abhishek,

Yes, you can modify loading the model as per your requirement but since you model is a simple CNN model you may use it directly.

Best Regards,

Surya

Reply