ai.djl.engine.EngineException: Failed to load PyTorch native library #1434
Replies: 8 comments 3 replies
-
The pom.xml file looks fine to me, but I recommend you to bom to manage DJL versions. What error message did you get? Can you shared stacktrace?
|
Beta Was this translation helpful? Give feedback.
-
Hello, I'm trying to launch the face detection example of DJL as a plugin of a stream app running on antmedia. ` The code on my plugin is : private FaceBlur(){
The built of the plugin works fine but when i try to run it i have this error :
The environment where the plugin runs is quite scpecific as i need to have every dependencies of the build locally. I've seen that the cmd line i ran for testing installed a lot of .so file on the system. Should i include them on my project ? How can i change the path to find them on my project ? Thank you! |
Beta Was this translation helpful? Give feedback.
-
@midgard-as For package the pytorch native library in your plugin, you can see: https://github.com/deepjavalibrary/djl/blob/master/engines/pytorch/pytorch-engine/README.md#linux I can take a look your project if you can shared it on github. |
Beta Was this translation helpful? Give feedback.
-
Hello, I have tried different to check the META-INF folder as said in the issue you linked :
I feel like this is expected and there is not much to change. Here is the full stacktrace i face:
I'm not buiding my project with gradle but with maven. I don't know if that could be a problem.. I'm a bit lost. I'll try to publish my project on github but it's quite a mess to test it! |
Beta Was this translation helpful? Give feedback.
-
This looks like a bug in DJL, for some reason your current thread's context classloader is null. I create a PR to address this issue: |
Beta Was this translation helpful? Give feedback.
-
Hi,
Do you have any idea what this could be due to ? Thanks ! |
Beta Was this translation helpful? Give feedback.
-
Can you try our nightly snapshot build? |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your help, it worked with the snapshot ! My last issue was unrelated to DJL :) |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have been trying to use DJL in my java project but i could not load PyTorch native library.
You can see my POM.xml :attached.
POM.txt
I have cuda 11.1 installed and I'm on Ubuntu 18.4. I also tried with pyorch-native-auto engine but it gave the same error !
Do you have any idea what the problem could be ?
Thank yu very much !
Beta Was this translation helpful? Give feedback.
All reactions