Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Go, and more
Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/Seq
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: scala.collection.Seq
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
Hi, I just some help please. I have successfully trained a yolo3_darknet53_custom model and generated a json and params files, however when testing it with Java API, I was having this strange error:
Exception in thread "main" java.lang.IllegalArgumentException: requirement failed: Mismatch between shape (100,1) and (1,100,4)
at scala.Predef$.require(Predef.scala:224)
at org.apache.mxnet.NDArray$$anonfun$9.apply(NDArray.scala:448)
at org.apache.mxnet.NDArray$$anonfun$9.apply(NDArray.scala:445)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.Iterator$class.foreach(Iterator.scala:893)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
at scala.collection.AbstractTraversable.map(Traversable.scala:104)
at org.apache.mxnet.NDArray$.concatenate(NDArray.scala:445)
at org.apache.mxnet.module.BaseModule$$anonfun$2.apply(BaseModule.scala:267)
at org.apache.mxnet.module.BaseModule$$anonfun$2.apply(BaseModule.scala:267)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
at scala.collection.AbstractTraversable.map(Traversable.scala:104)
at org.apache.mxnet.module.BaseModule.predict(BaseModule.scala:267)
at org.apache.mxnet.infer.Predictor$$anonfun$11.apply(Predictor.scala:210)
at org.apache.mxnet.infer.Predictor$$anonfun$11.apply(Predictor.scala:210)
at org.apache.mxnet.infer.MXNetThreadPoolHandler$$anon$4.call(MXNetHandler.scala:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':ObjectDetectionTutorial.main()'.
> Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
2 actionable tasks: 1 executed, 1 up-to-date
Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'' finished with non-zero exit value 1
11:48:21: Task execution finished 'ObjectDetectionTutorial.main()'.
My settings are: image size is 512, class is 1, and pretrained_base=False.
This is the generated json file: https://gist.github.com/androuino/0b5e36c2fb39be2bda6cd8fc8bdadd05
and this is the param model: https://filebin.net/n89gzmb285oxre2g
Thank you so much.
Hello,
I am working on the CSharp binding for MxNet and able to complete the Imperative, Symbolic and Gluon packages where the code is implemented based on MxNet 1.5.1 version. Can this repo be mentioned on MxNet documentation. I will work on developing the C# version of the API docs since we have similar for Scala, R binding as well.
Repo: https://github.com/SciSharp/MxNet.Sharp
Thanks for your hardwork in buiding this amazing library.
Regards,
Deepak