After packing into JAR Windows doesn't register all engines, MacOS registers them #1616
filipsedivy
started this conversation in
Development
Replies: 2 comments 1 reply
-
It should just work on windows. A few question
|
Beta Was this translation helpful? Give feedback.
1 reply
-
@filipsedivy DJL use You can to use gradle or maven to create jar. I don't know if IntelliJ provides this advanced option. Here is example project to show you how to package a jar with DJL: ServiceLoader |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I would like to ask if you can guide me how to make sure that after packaging a JAR application, all the engines that are installed through the Maven dependency are registered?
When I run the app on macOS, this is what shows up in the console:
01:51:53.471 [Thread-0] DEBUG ai.djl.repository.zoo.ModelZoo - Searching model in specified model zoo: ai.djl.localmodelzoo 01:51:53.472 [Thread-0] DEBUG ai.djl.engine.Engine - Registering EngineProvider: TensorFlow 01:51:53.473 [Thread-0] DEBUG ai.djl.engine.Engine - Registering EngineProvider: OnnxRuntime 01:51:53.473 [Thread-0] DEBUG ai.djl.engine.Engine - Found default engine: TensorFlow 01:51:53.473 [Thread-0] DEBUG ai.djl.repository.zoo.ModelZoo - Checking ModelLoader: ai.djl.localmodelzoo:model.onnx UNDEFINED [ ai.djl.localmodelzoo/model.onnx/model.onnx {} ]
When I run this same code under Windows, it does not register ONNX. Thus, the same code cannot be executed.
My maven is like this:
And here is part of the code I use to load the model
Thank you very much for your advice.
Beta Was this translation helpful? Give feedback.
All reactions