Hi Kelvis,
As soon as I execute Run.java i get progressBar showing ("Loading model this make take several seconds!") but after that the UI is not created. I am using windows 10 and eclipse. And when I run CarVideoDetection its throwing following error:
Exception in thread "main" Exception in thread "Thread-0" java.lang.NoClassDefFoundError: Could not initialize class ramo.klevis.TinyYoloPrediction
at ramo.klevis.CarVideoDetection.lambda$0(CarVideoDetection.java:52)
at java.lang.Thread.run(Thread.java:745)
java.lang.ExceptionInInitializerError
at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.(NativeOpExecutioner.java:54)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:6185)
at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:6087)
at org.nd4j.linalg.factory.Nd4j.(Nd4j.java:201)
at org.deeplearning4j.util.ModelSerializer.restoreComputationGraph(ModelSerializer.java:552)
at org.deeplearning4j.util.ModelSerializer.restoreComputationGraph(ModelSerializer.java:464)
at org.deeplearning4j.zoo.ZooModel.initPretrained(ZooModel.java:88)
at org.deeplearning4j.zoo.ZooModel.initPretrained(ZooModel.java:41)
at ramo.klevis.TinyYoloPrediction.(TinyYoloPrediction.java:31)
at ramo.klevis.TinyYoloPrediction.(TinyYoloPrediction.java:38)
at ramo.klevis.CarVideoDetection.startRealTimeVideoDetection(CarVideoDetection.java:61)
at ramo.klevis.CarVideoDetection.main(CarVideoDetection.java:24)
Caused by: java.lang.RuntimeException: ND4J is probably missing dependencies. For more information, please refer to: http://nd4j.org/getstarted.html
at org.nd4j.nativeblas.NativeOpsHolder.(NativeOpsHolder.java:51)
at org.nd4j.nativeblas.NativeOpsHolder.(NativeOpsHolder.java:19)
... 17 more
Caused by: java.lang.UnsatisfiedLinkError: no jnind4jcpu in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1220)
at org.bytedeco.javacpp.Loader.load(Loader.java:980)
at org.bytedeco.javacpp.Loader.load(Loader.java:879)
at org.nd4j.nativeblas.Nd4jCpu.(Nd4jCpu.java:10)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.bytedeco.javacpp.Loader.load(Loader.java:938)
at org.bytedeco.javacpp.Loader.load(Loader.java:879)
at org.nd4j.nativeblas.Nd4jCpu$NativeOps.(Nd4jCpu.java:1292)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.nd4j.nativeblas.NativeOpsHolder.(NativeOpsHolder.java:29)
... 18 more
Caused by: java.lang.UnsatisfiedLinkError: no nd4jcpu in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1220)
at org.bytedeco.javacpp.Loader.load(Loader.java:965)
... 28 more
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\piyush\git\AutonomousDriving\resources\videoSample.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2017-06-01T03:27:16.000000Z
Duration: 00:01:00.12, start: 0.000000, bitrate: 713 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x360 [SAR 1:1 DAR 16:9], 639 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 71 kb/s (default)
Metadata:
creation_time : 2017-06-01T03:27:17.000000Z
handler_name : IsoMedia File Produced by Google, 5-11-2011
Hi @piyushy1 thanks for reporting this , from what I see it looks like a dependency is missing there. It happens sometimes deeplearning4j changes dependencies versioning,names. So will check and let you know.
Hi Kelvis,
After changing dependencies also its throwing class not found error. The error is

In Tiny Yolo class its unable to resolve INDArray and Imageprocessingscaler. I have change the versions of nd4j-api and dl4j to latest but still no success. Any help/suggestions will be highly appreciated. I am now using Intellij on windows 10.

Hi @piyushy1 unfortunately I was not able to reproduce the maven problem locally... Maybe because libraries are already downloaded at my PC. Anyway there is a better version of this application as part of this java deep learning video course I hope that will solve your problem.