Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6372 Discussions

How to load openvino model from memory buffer in python

TarunM
Beginner
582 Views

I need to encrypt the model files (ir and xml) for copyright.

I want to load and decrypt the files at run time. How can I do this in python?

What changes do I need to make? My current code looks like below:-

self.model = ie.read_model(model=model_path)
self.compiled_model = ie.compile_model(model=self.model, device_name=device)

 

0 Kudos
2 Replies
IntelSupport
Community Manager
546 Views

Hi TarunM,

 

Thanks for reaching out.

 

From your snippet code, the read_model() and compile_model() are only the processes of loading a model. To understand how you can encrypt the model, you can read the Using Encrypted Models with OpenVINO. Please note that the guide is in CPP and not available in Python.

 


Regards,

Aznie


0 Kudos
IntelSupport
Community Manager
496 Views

Hi TarunM,


This thread will no longer be monitored since we have provided information. If you need any additional information from Intel, please submit a new question.



Regards,

Aznie


0 Kudos
Reply