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

视频流检测问题 #13

Open
javadoge opened this issue Dec 23, 2022 · 2 comments
Open

视频流检测问题 #13

javadoge opened this issue Dec 23, 2022 · 2 comments

Comments

@javadoge
Copy link

问题:使用demo测试发现涉及到视频流检测的,会报错如下:

Exception in thread "main" java.lang.ExceptionInInitializerError
at ai.djl.paddlepaddle.engine.PpEngine.newBaseManager(PpEngine.java:110)
at ai.djl.paddlepaddle.engine.PpEngine.newModel(PpEngine.java:92)
at ai.djl.Model.newInstance(Model.java:98)
at ai.djl.repository.zoo.BaseModelLoader.createModel(BaseModelLoader.java:187)
at ai.djl.repository.zoo.BaseModelLoader.loadModel(BaseModelLoader.java:149)
at ai.djl.repository.zoo.Criteria.loadModel(Criteria.java:166)
at ai.djl.repository.zoo.ModelZoo.loadModel(ModelZoo.java:132)
at me.aias.example.RtspFaceMaskDetectionExample.faceMaskDetection(RtspFaceMaskDetectionExample.java:108)
at me.aias.example.RtspFaceMaskDetectionExample.main(RtspFaceMaskDetectionExample.java:45)
Caused by: ai.djl.engine.EngineException: Failed to load PyTorch native library
at ai.djl.pytorch.engine.PtEngine.newInstance(PtEngine.java:81)
at ai.djl.pytorch.engine.PtEngineProvider.getEngine(PtEngineProvider.java:40)
at ai.djl.engine.Engine.getEngine(Engine.java:177)
at ai.djl.engine.Engine.getInstance(Engine.java:132)
at ai.djl.paddlepaddle.engine.PpEngine.getAlternativeEngine(PpEngine.java:54)
at ai.djl.ndarray.BaseNDManager.(BaseNDManager.java:57)
at ai.djl.paddlepaddle.engine.PpNDManager.(PpNDManager.java:33)
at ai.djl.paddlepaddle.engine.PpNDManager.(PpNDManager.java:28)
at ai.djl.paddlepaddle.engine.PpNDManager$SystemManager.(PpNDManager.java:115)
at ai.djl.paddlepaddle.engine.PpNDManager.(PpNDManager.java:30)
... 9 more
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\Administrator.djl.ai\pytorch\1.11.0-cu113-win-x86_64\cudnn_cnn_train64_8.dll: 找不到指定的程序

其他模型运行没问题,用dll工具查看此dll也没有依赖错误信息,此dll也是存在的

@Shichang-Fu
Copy link

请问问题解决了吗,我也遇到了这个问题

@noise2233
Copy link

PyTorch 和 cuda 需要相应的版本。或者把cuda文件下相应的dll文件复制到依赖文件夹。

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

No branches or pull requests

3 participants