onnxruntime-unity icon indicating copy to clipboard operation
onnxruntime-unity copied to clipboard

[Info Request] : What is the difference between onnxruntime-unity and sentis

Open rawatsaurabh opened this issue 1 year ago • 3 comments

Hello, I am just exploring the frameworks of integrating the ML/DL NN models to Unity framework. I found barracuda and then its latest migration (sentis - which is still in beta and hope to release by end of 2024) .Sentis also provides the yolo model integration. What benefit does onnx runtime has over sentis? Are the examples portable on Android or iOS? Regards, Saurabh

rawatsaurabh avatar Apr 09 '24 16:04 rawatsaurabh

@rawatsaurabh Thanks for your interest.

Yes, this example should work on Android and iOS. Please take a look at my Medium post about why I started exploring ONNX Runtime within Unity.

In short

  • Use Sentis if:
    • Targeting Web Player
    • Your model is compatible with Sentis, and the performance is good enough
  • Use ONNX Runtime if:
    • Your ONNX model is not compatible with Sentis. This library is a thin wrapper of C# ONNX Runtime. It will support various models.

Other candidates:

Please let me know if you found other good ML libraries.

asus4 avatar Apr 09 '24 18:04 asus4

Also does it work on the real time inference (of a camera) on Android/iOS? I have seen Sentis has very bad performance so far.(too slow)

rawatsaurabh avatar Apr 10 '24 17:04 rawatsaurabh

@rawatsaurabh You can try it yourself with this repository :)

https://github.com/asus4/onnxruntime-unity-examples

asus4 avatar Apr 10 '24 19:04 asus4

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 14 '24 05:06 stale[bot]