ObjectDetection - 基于yolov5的目标检测
-
-
也许可以做个检测图片中人物的关键部位的
-
赞赞赞!!
-
好像没反应
-
提示 Failed to load PyTorch native library
-
2022-04-12 09:11:04 W/stderr: Caused by: java.lang.UnsatisfiedLinkError: C:\User
s\Administrator.djl.ai\pytorch\1.9.1-cpu-win-x86_64\asmjit.dll: Can't find depe
ndent libraries -
@夏目喵zz 第一次运行时会自动下载所需要的dll,有可能是网络原因导致下载失败,你可以手动下载并放到提示的目录中试试
-
-
@xtaw好的我试试
-
@xtaw 大佬我按你说得,下载解压放那个文件夹了,还是一个样
-
@夏目喵zz Caused by: java.net.BindException:Address already in use: bind
-
@夏目喵zz 端口占用?
-
@夏目喵zz 报错信息给详细一点,下面的At...也发过来
-
@xtaw 重启后好像没有错误了
-
@xtaw 我标记后,复制不了,,,,一个一个码打。。。
-
@夏目喵zz 能正常使用就行了
-
This post is deleted! -
@夏目喵zz cmd中选择后直接按鼠标右键就能复制
-
@xtaw 噢噢好的
-
@xtaw 2022-04-13 22:59:27 W/stderr: ai.djl.engine.EngineException: Failed to load PyTo
rch native library
2022-04-13 22:59:27 W/stderr: at ai.djl.pytorch.engine.PtEngine.newInstance(Pt
Engine.java:77)
2022-04-13 22:59:27 W/stderr: at ai.djl.pytorch.engine.PtEngineProvider.getEng
ine(PtEngineProvider.java:40)
2022-04-13 22:59:27 W/stderr: at ai.djl.engine.Engine.getEngine(Engine.java:17
7)
2022-04-13 22:59:27 W/stderr: at ai.djl.Model.newInstance(Model.java:98)
2022-04-13 22:59:27 W/stderr: at ai.djl.repository.zoo.BaseModelLoader.createM
odel(BaseModelLoader.java:187)
2022-04-13 22:59:27 W/stderr: at ai.djl.repository.zoo.BaseModelLoader.loadMod
el(BaseModelLoader.java:149)
2022-04-13 22:59:27 W/stderr: at ai.djl.repository.zoo.Criteria.loadModel(Crit
eria.java:166)
2022-04-13 22:59:27 W/stderr: at ai.djl.repository.zoo.ModelZoo.loadModel(Mode
lZoo.java:132)
2022-04-13 22:59:27 W/stderr: at xtaw.objectdetectionbot.util.YoloV5Util.detec
t(YoloV5Util.java:56)
2022-04-13 22:59:27 W/stderr: at xtaw.objectdetectionbot.main.MainPlugin.lambd
a$registerEvents$1(MainPlugin.java:78)
2022-04-13 22:59:27 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeA
lways$2$1.invoke(EventChannel.kt:574)
2022-04-13 22:59:27 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeA
lways$2$1.invoke(EventChannel.kt:574)
2022-04-13 22:59:27 W/stderr: at kotlinx.coroutines.InterruptibleKt.runInterru
ptibleInExpectedContext(Interruptible.kt:46)
2022-04-13 22:59:27 W/stderr: at kotlinx.coroutines.InterruptibleKt.access$run
InterruptibleInExpectedContext(Interruptible.kt:1)
2022-04-13 22:59:27 W/stderr: at kotlinx.coroutines.InterruptibleKt$runInterru
ptible$2.invokeSuspend(Interruptible.kt:38)
2022-04-13 22:59:27 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuati
onImpl.resumeWith(ContinuationImpl.kt:33)
2022-04-13 22:59:27 W/stderr: at kotlinx.coroutines.DispatchedTask.run(Dispatc
hedTask.kt:106)
2022-04-13 22:59:27 W/stderr: at kotlinx.coroutines.internal.LimitedDispatcher
.run(LimitedDispatcher.kt:39)
2022-04-13 22:59:27 W/stderr: at kotlinx.coroutines.scheduling.TaskImpl.run(Ta
sks.kt:95)
2022-04-13 22:59:27 W/stderr: at kotlinx.coroutines.scheduling.CoroutineSchedu
ler.runSafely(CoroutineScheduler.kt:571)
2022-04-13 22:59:27 W/stderr: at kotlinx.coroutines.scheduling.CoroutineSchedu
ler$Worker.executeTask(CoroutineScheduler.kt:750)
2022-04-13 22:59:27 W/stderr: at kotlinx.coroutines.scheduling.CoroutineSchedu
ler$Worker.runWorker(CoroutineScheduler.kt:678)
2022-04-13 22:59:27 W/stderr: at kotlinx.coroutines.scheduling.CoroutineSchedu
ler$Worker.run(CoroutineScheduler.kt:665)
2022-04-13 22:59:27 W/stderr: Caused by: java.lang.UnsatisfiedLinkError: C:\User
s\Administrator.djl.ai\pytorch\1.9.1-cpu-win-x86_64\asmjit.dll: Can't find depe
ndent libraries
2022-04-13 22:59:27 W/stderr: at java.base/java.lang.ClassLoader$NativeLibrary
.load0(Native Method)
2022-04-13 22:59:27 W/stderr: at java.base/java.lang.ClassLoader$NativeLibrary
.load(ClassLoader.java:2430)
2022-04-13 22:59:27 W/stderr: at java.base/java.lang.ClassLoader$NativeLibrary
.loadLibrary(ClassLoader.java:2487)
2022-04-13 22:59:27 W/stderr: at java.base/java.lang.ClassLoader.loadLibrary0(
ClassLoader.java:2684)
2022-04-13 22:59:27 W/stderr: at java.base/java.lang.ClassLoader.loadLibrary(C
lassLoader.java:2617)
2022-04-13 22:59:27 W/stderr: at java.base/java.lang.Runtime.load0(Runtime.jav
a:765)
2022-04-13 22:59:27 W/stderr: at java.base/java.lang.System.load(System.java:1
835)
2022-04-13 22:59:27 W/stderr: at ai.djl.pytorch.jni.LibUtils.loadNativeLibrary
(LibUtils.java:328)
2022-04-13 22:59:27 W/stderr: at java.base/java.util.stream.ForEachOps$ForEach
Op$OfRef.accept(ForEachOps.java:183)
2022-04-13 22:59:27 W/stderr: at java.base/java.util.stream.ReferencePipeline$
3$1.accept(ReferencePipeline.java:195)
2022-04-13 22:59:27 W/stderr: at java.base/java.util.stream.ReferencePipeline$
2$1.accept(ReferencePipeline.java:177)
2022-04-13 22:59:27 W/stderr: at java.base/java.util.stream.ReferencePipeline$
3$1.accept(ReferencePipeline.java:195)
2022-04-13 22:59:27 W/stderr: at java.base/java.util.Iterator.forEachRemaining
(Iterator.java:133)
2022-04-13 22:59:27 W/stderr: at java.base/java.util.Spliterators$IteratorSpli
terator.forEachRemaining(Spliterators.java:1801)
2022-04-13 22:59:27 W/stderr: at java.base/java.util.stream.AbstractPipeline.c
opyInto(AbstractPipeline.java:484)
2022-04-13 22:59:27 W/stderr: at java.base/java.util.stream.AbstractPipeline.w
rapAndCopyInto(AbstractPipeline.java:474)
2022-04-13 22:59:27 W/stderr: at java.base/java.util.stream.ForEachOps$ForEach
Op.evaluateSequential(ForEachOps.java:150)
2022-04-13 22:59:27 W/stderr: at java.base/java.util.stream.ForEachOps$ForEach
Op$OfRef.evaluateSequential(ForEachOps.java:173)
2022-04-13 22:59:27 W/stderr: at java.base/java.util.stream.AbstractPipeline.e
valuate(AbstractPipeline.java:234)
2022-04-13 22:59:27 W/stderr: at java.base/java.util.stream.ReferencePipeline.
forEach(ReferencePipeline.java:497)
2022-04-13 22:59:27 W/stderr: at ai.djl.pytorch.jni.LibUtils.loadLibTorch(LibU
tils.java:128)
2022-04-13 22:59:27 W/stderr: at ai.djl.pytorch.jni.LibUtils.loadLibrary(LibUt
ils.java:72)
2022-04-13 22:59:27 W/stderr: at ai.djl.pytorch.engine.PtEngine.newInstance(Pt
Engine.java:50)
2022-04-13 22:59:27 W/stderr: ... 22 more
2022-04-13 22:59:27 E/ObjectDetection: Unable to run yolov5. Check if "model.tor
chscript" and "coco.names" exist and are valid.