- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page