Deploy the protected models

Requirements

  • onnxruntime >= 1.18.0
  • libcurl

    Include the SkRuntime library

To use the protected models, the SkRuntime library should be imported. This can be done using a standard import statement.

E.g. to import the library from a path in the Python path, use:

import skruntime_onnx

The user running the application should have permission to write in the directory containing the SkRuntime library.

If the model is loaded from its path

If the protected model is loaded using its path, the mev file associated with the model should be placed in the same directory as the protected model.

If the model is loaded from bytes

If the model is loaded from bytes, the mev file associated with the model should be placed in the same directory as SkRuntime library.

Use your model as usual

Once the SkRuntime library imported, you can now use your model as usual with onnxruntime. The input added by the protection will be ignored by the onnxruntime library.

Behaviour of un-protected models will be unchanged with the onnxruntime library.