Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tflite-engine do not support windows system well #1006

Closed
hongyaohongyao opened this issue Jun 10, 2021 · 3 comments
Closed

tflite-engine do not support windows system well #1006

hongyaohongyao opened this issue Jun 10, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@hongyaohongyao
Copy link

I try to use tflite-engine in my projects and it threw a exception like the following while other engine would download the library automaticlly

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: D:\cache\djl\tflite\2.4.1-cpu-win-x86_64\tensorflowlite_jni.dll
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1820)
	at java.lang.Runtime.load0(Runtime.java:810)
	at java.lang.System.load(System.java:1086)
	at ai.djl.tflite.engine.LibUtils.loadLibrary(LibUtils.java:59)
	at ai.djl.tflite.engine.TfLiteEngine.<init>(TfLiteEngine.java:38)
	at ai.djl.tflite.engine.TfLiteEngine.newInstance(TfLiteEngine.java:42)
	at ai.djl.tflite.engine.TfLiteEngineProvider.getEngine(TfLiteEngineProvider.java:40)
	at ai.djl.engine.Engine.getEngine(Engine.java:152)
	at ai.djl.engine.Engine.getInstance(Engine.java:117)
	at ai.djl.onnxruntime.engine.OrtEngine.getAlternativeEngine(OrtEngine.java:65)
	at ai.djl.onnxruntime.engine.OrtEngine.newBaseManager(OrtEngine.java:108)
	at ai.djl.onnxruntime.engine.OrtEngine.newModel(OrtEngine.java:90)
	at ai.djl.Model.newInstance(Model.java:98)
	at ai.djl.repository.zoo.BaseModelLoader.createModel(BaseModelLoader.java:176)
	at ai.djl.repository.zoo.BaseModelLoader.loadModel(BaseModelLoader.java:139)
	at ai.djl.repository.zoo.ModelZoo.loadModel(ModelZoo.java:190)
	at xyz.hyhy.scai.Yolov5WithMask.main(Yolov5WithMask.java:61)

Process finished with exit code 1
@hongyaohongyao hongyaohongyao added the bug Something isn't working label Jun 10, 2021
@hongyaohongyao hongyaohongyao changed the title tflite-engine do not support windows system tflite-engine do not support windows system well Jun 10, 2021
@frankfliu
Copy link
Contributor

@hongyaohongyao
We don't support TFLite for windows currently. Can you tell me more about your use case?

@hongyaohongyao
Copy link
Author

@hongyaohongyao
We don't support TFLite for windows currently. Can you tell me more about your use case?

I want to use the weights in mediapipe. It has a bad support for windows too. Now I transform the weights file into a onnx file

@frankfliu frankfliu added enhancement New feature or request and removed bug Something isn't working labels Jun 7, 2022
Lokiiiiii pushed a commit to Lokiiiiii/djl that referenced this issue Oct 10, 2023
@frankfliu
Copy link
Contributor

TFLite is deprecated in DJL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants