Skip to content

Instantly share code, notes, and snippets.

@codenamewei
Created March 16, 2018 20:12
Show Gist options
  • Save codenamewei/23e53dec6f442365dbf2e9b5c8cad2b2 to your computer and use it in GitHub Desktop.
Save codenamewei/23e53dec6f442365dbf2e9b5c8cad2b2 to your computer and use it in GitHub Desktop.
java -jar ./target/skil-example-yolo2-tf-1.0.0.jar --input https://raw.githubusercontent.com/tejaslodaya/car-detection-yolo/master/images/0012.jpg --endpoint http://localhost:9008/endpoints/yolo/model/yolo2/default/
Input Image: https://raw.githubusercontent.com/tejaslodaya/car-detection-yolo/master/images/0012.jpg
Input width: 1280
Input height: 720
16:10:27.357 [main] INFO org.nd4j.linalg.factory.Nd4jBackend - Loaded [CpuBackend] backend
16:10:28.158 [main] INFO org.nd4j.nativeblas.NativeOpsHolder - Number of threads used for NativeOps: 1
Unable to tune runtime. Please set OMP_NUM_THREADS manually.
16:10:28.470 [main] INFO org.nd4j.nativeblas.Nd4jBlas - Number of threads used for BLAS: -1
16:10:28.473 [main] INFO org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner - Backend used: [CPU]; OS: [Linux]
16:10:28.473 [main] INFO org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner - Cores: [1]; Memory: [0.7GB];
16:10:28.473 [main] INFO org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner - Blas vendor: [UNKNOWN]
Getting the auth token took: 617 ms
Sending the Classification Payload...
Exception
Return: {"error":"Not all variables specified. 1 variables were specified, but needed 0"}
Retrieving labels took: 80 ms
Exception in Application start method
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at ai.skymind.skil.examples.yolo2.modelserver.inference.YOLO2_TF_Client.renderJavaFXStyle(YOLO2_TF_Client.java:358)
at ai.skymind.skil.examples.yolo2.modelserver.inference.YOLO2_TF_Client.start(YOLO2_TF_Client.java:327)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$48(GtkApplication.java:139)
... 1 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment