Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not show UI and predict #10

Open
Allanwby0516 opened this issue May 1, 2021 · 1 comment
Open

Can not show UI and predict #10

Allanwby0516 opened this issue May 1, 2021 · 1 comment

Comments

@Allanwby0516
Copy link

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 Allanwby0516 changed the title MainKT Error Can not show UI and predict May 1, 2021
@Allanwby0516
Copy link
Author

Allanwby0516 commented May 6, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant