地表最强,免费,可商用,可赚钱,Java AI 人工智能一站式解决方案,为工作减负,为产品研发加速。提供: 以图搜图,人脸识别,一键抠图,照片上色,图像高清,OCR/IOCR 文字识别,机器翻译,RAG 增强搜索,大模型等。项目类别包括:AI SDK,web应用,桌面应用,图像生成等在内,合计超过100个项目组成的项目集。| Artificial Intelligence Accelerator Kit. It provides: a project collection consisting of over 100 projects, including AI SDK, web applications, desktop applications, image generation,
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: 找不到指定的程序
问题:使用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也是存在的