PhotoLabellerServer
PhotoLabellerServer copied to clipboard
Can not show UI and predict
Hi, I'm a student interest in Federated Learning.
I ran the client program and there was no problem, and the model also can return to the server-side
When I ran server-side,
http://localhost:9997/service/federatedservice/available
can run,
but there wasn't show UI on the web.
And I ran PhotoLabellerServer/model/src/main/kotlin/com/mccorby/photolabeller/ml/Main.kt, the compiler showed
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at com.mccorby.photolabeller.ml.MainKt.main(Main.kt:42)]
Process finished with exit code 1
I tried to find the solution for a long time, but I still not understand where is the problem,
Has anyone solved it?
Thanks!
I solved the problem!
If you use IntelliJ or Android Studio, You should right-click Main.kt -> Edit 'MainKt' ->
Add train /directory web
in Program arguments column, and you can open the DL4J UI and training!
Annotation: /directory
is a valid directory to save the resulting model.