PhotoLabellerServer icon indicating copy to clipboard operation
PhotoLabellerServer copied to clipboard

Can not show UI and predict

Open Allanwby0516 opened this issue 3 years ago • 1 comments

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!

Allanwby0516 avatar May 01 '21 09:05 Allanwby0516

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.

Allanwby0516 avatar May 06 '21 15:05 Allanwby0516