jpy
onnxruntime-extensions
jpy | onnxruntime-extensions | |
---|---|---|
1 | 1 | |
66 | 265 | |
- | 3.8% | |
7.3 | 9.0 | |
9 days ago | 6 days ago | |
C | Python | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jpy
-
Best way to combine Python and Java?
Jpy: a library that runs an interpreter in the JVM. Spare the service start/stop, but: isn't really feasible for more than a single-liner, data translation between Java and Python is cumbersome, and I also encountered runtime segmentation fault errors.
onnxruntime-extensions
-
Best way to combine Python and Java?
Image preprocessing I know less about, but tokenization is something I've dealt with a bunch. There are a few options, either push the tokenizer into the ONNX model and use MS's ONNX Runtime extensions (we've used this when working with sentencepiece tokenizers), port the tokenizer entirely to Java (we did this for BERT), or use a sentencepiece or HF tokenizers wrapper directly (e.g. Amazon's DJL did this - HF, sentencepiece).
What are some alternatives?
dbus-java - Improved version of java DBus library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/)
Deep Java Library (DJL) - An Engine-Agnostic Deep Learning Framework in Java
deephaven-core - Deephaven Community Core
jep - Embed Python in Java
javacpp-embedded-python - With this library, you can embed Python to your Java or Scala project. The main purpose of this library is to use Python libraries from Java or Scala.
Deeplearning4j - Suite of tools for deploying and training deep learning models using the JVM. Highlights include model import for keras, tensorflow, and onnx/pytorch, a modular and tiny c++ library for running math code and a java based math library on top of the core c++ library. Also includes samediff: a pytorch/tensorflow like library for running deep learning using automatic differentiation.
JPassport - JPassport