Class OnnxModel

Object
OnnxModel
All Implemented Interfaces:
AutoCloseable, ImageInferenceModel<ai.onnxruntime.OnnxTensor>, InferenceModel

public class OnnxModel extends Object implements ImageInferenceModel<ai.onnxruntime.OnnxTensor>
A model that can be used for inference using the ONNX Runtime's Java API.

Note that a temporary directory is created by the ONNX Runtime, something ala C:\Users\owen\AppData\Local\Temp\onnxruntime-java3819764023069624084 with the final number changing. This should be deleted after the Java VM closes, but this doesn't seem to always happen. This requires further investigation, but can cause up a large buildup of files, as each instance is approximately 300MBs.

Author:
Owen Feehan