Comments (20)
Ok I checked, it seemed like the latest vc 2019 redistributable was installed.
from tf-lite-unity-sample.
@vaibhav-suri I managed to fix this error by installing both the x86 and x64 Visual C++ 2019 Redistributable.
Hope this works for you as well.
from tf-lite-unity-sample.
@Cipher-zzz
I haven't tried building it. But I think you can cross-compile it by adding build options in bazel.
https://www.tensorflow.org/lite/guide/build_arm
To build a dll for Windows, please refer to the build script build_tflite.py
tf-lite-unity-sample/build_tflite.py
Lines 50 to 54 in 0060d49
from tf-lite-unity-sample.
@siri-sinthawat I am temporarily working on another project, haven't tried it yet. I will comment here if there is any update.
from tf-lite-unity-sample.
Hmm, it seems to be a dependency error. but I couldn't reproduce it. Are there any other error messages? Can you share the UnityEditor's log?
from tf-lite-unity-sample.
Hello.
I got this same dependency issue. I decided to rebuild the tflite libraries myself. Prepared the build environment ... and after that the message about dependencies in Unity disappeared.
from tf-lite-unity-sample.
@cyraxchel Thanks for your report. Just to clarify, Did the error disappear before you built the library yourself?
from tf-lite-unity-sample.
@cyraxchel Thanks for your report. Just to clarify, Did the error disappear before you built the library yourself?
I failed rebuild library (some error in VC). I keep using your library. :)
UPD: win 10, Unity: 2019.1.6f1 and Unity 2019.4.8f1
from tf-lite-unity-sample.
I seem to get this issue as well; It works on two different PCs but on another PC it the plugin fails to load, with the same error.
from tf-lite-unity-sample.
Could you check which dependencies are missing using app like this?
https://kb.froglogic.com/misc/using-dependency-walker/
from tf-lite-unity-sample.
Trying to build for Windows 10 UWP Arm64 application leads to the same error:
Exception thrown at 0x00007FFDF75539EC in tf-lite-unity-sample.exe: Microsoft C++ exception: Il2CppExceptionWrapper at memory location 0x0000009FF8CFCA60. DllNotFoundException: Unable to load DLL 'libtensorflowlite_c': The specified module could not be found. at TensorFlowLite.InterpreterOptions.TfLiteInterpreterOptionsCreate () [0x00000] in <00000000000000000000000000000000>:0 at TensorFlowLite.InterpreterOptions..ctor () [0x00000] in <00000000000000000000000000000000>:0 at TensorFlowLite.BaseImagePredictor1[T]..ctor (System.String modelPath, System.Boolean useGPU) [0x00000] in <00000000000000000000000000000000>:0 at TensorFlowLite.PoseNet..ctor (System.String modelPath) [0x00000] in <00000000000000000000000000000000>:0 at PoseNetSample.Start () [0x00000] in <00000000000000000000000000000000>:0
Would be great to add support for UWP Arm64 as well (needed for Hololens 2 development).
from tf-lite-unity-sample.
Plugins: Failed to load 'V:/HandTracking/tflite/tf-lite-unity-sample-master/Packages/com.github.asus4.tflite/Plugins/Windows/libtensorflowlite_c.dll' because one or more of its dependencies could not be loaded.
Getting this error,any idea how to fix?
from tf-lite-unity-sample.
@SBeyer6 Thanks a lot! That worked.
from tf-lite-unity-sample.
@cwule got the same error when developing Hololens 2 App, did you solve that issue? Or if there is any idea to approach. Thanks in advance.
from tf-lite-unity-sample.
@cwule got the same error when developing Hololens 2 App, did you solve that issue? Or if there is any idea to approach. Thanks in advance.
Please, check corerct version VC installed. When I install VS 2019, it fix error. Before was VS 2017.. Sorry, I don't remember, which versions on both Visual Studio on.
from tf-lite-unity-sample.
@cyraxchel Thanks for your response. I have tried both VS 2019 and VS 2022, with VC 2019 redistributable installed, same error:
DllNotFoundException: Unable to load DLL 'libtensorflowlite_c': The specified module could not be found.
at TensorFlowLite.InterpreterOptions.TfLiteInterpreterOptionsCreate () [0x00000] in <00000000000000000000000000000000>:0
at TensorFlowLite.InterpreterOptions..ctor () [0x00000] in <00000000000000000000000000000000>:0
at TensorFlowLite.BaseImagePredictor`1[T]..ctor (System.String modelPath, System.Boolean useGPU) [0x00000] in <00000000000000000000000000000000>:0
at TensorFlowLite.SSD..ctor (System.String modelPath) [0x00000] in <00000000000000000000000000000000>:0
at SsdSample.Start () [0x00000] in <00000000000000000000000000000000>:0
I think the reason for this error could be different from the one in the origin post. I checked the DLL file 'libtensorflowlite_c' in Unity, it seems only support x86 and x64. However, I am building the project into HoloLens 2 which is ARM64, which should be the reason why this happened.
I don't have much experience in Unity development, I am not sure what does that DLL file is for and how to make it support ARM64 devices. I will appreciate that if you can give me some ideas. @asus4
from tf-lite-unity-sample.
@asus4 Thank you! I will have a try.
from tf-lite-unity-sample.
@Cipher-zzz The same error is happening to me. Can it be fixed?
from tf-lite-unity-sample.
the same error happen on my mac pro
from tf-lite-unity-sample.
Did you pull Git LFS files? All libs are in Git LFS.
from tf-lite-unity-sample.
Related Issues (20)
- Unable to support TensorFlow Lite Task Library model? HOT 5
- Accelerator compatibility issue on Android phones HOT 1
- Expose mediapipe config option "min_pose_detection_confidence" HOT 2
- face blendshape and geometry support HOT 4
- CameraTextureBackground doesn't support Built-in Render Pipeline HOT 4
- Custom model in SSD throws exception: TensorFlowLite operation failed HOT 3
- When the Graphics API is set to OpenGLES3, the ssd tracking does not work. HOT 2
- Fails TFLite Android build on CircleCI HOT 6
- deeplabv3_257_mv_gpu.tflite question HOT 2
- Having multiple tflite models deployed on same application HOT 5
- Better camera quality or a plugin instead of WebcamTexture HOT 1
- Facing Issue with Custom Model Integration HOT 2
- Map the landmarks on BlazePose Sample into a 3D avatar: eg Unity Chan? HOT 3
- Gpu Accelerator not working for linux x86_64. HOT 2
- undefined symbol errors on Xcode HOT 2
- This TensorFlow Lite and the one Xamarin - identical? HOT 1
- DllNotFoundException: libtensorflowlite_jni HOT 2
- Audio classification will produce different results on different runs HOT 9
- Blazepose runs very slowly on mobile HOT 1
- using static image instead of WebCamTexture on BlazePose HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tf-lite-unity-sample.