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

Communication failed. #6

Open
JieZhou0805 opened this issue Apr 4, 2019 · 9 comments
Open

Communication failed. #6

JieZhou0805 opened this issue Apr 4, 2019 · 9 comments

Comments

@JieZhou0805
Copy link

I have read the issues "The client can't communicate with the server" and have some questions. I met the same situation. I have already configurated the server IP. The server can be visited by the phone, but the client can't visit it. I saw someone mention the model.zip before. But I don't know where to place it. If anyone can give me some help, I will be very grateful.

@VatsaPatel
Copy link

First read the readme of server and edit your config in local.properties. and paste model.zip in there

Then change config on client to your server's ip address

@JieZhou0805
Copy link
Author

The config on client have changed to my server's ip address. The path of sdk have configured in local.properties. Should I paste model.zip into model directory in server?
In additon, I visited http://localhost:9997/service/federatedservice/currentRound and received followed infomation: {"modelVersion":"round_20190404_145138","startDate":1554360698807,"endDate":1554447098807,"minUpdates":1000}. I counted the time difference between the start time and the end time. This time difference should be my training time. But this time does not match the time I run the app.

@JieZhou0805
Copy link
Author

About model.zip, will it create a new one after training? If so, then where will it be saved? Is in the same directory of Json file?

@VatsaPatel
Copy link

Model will be saved in the directory that you provided in parameters.

@JieZhou0805
Copy link
Author

Is this directory http://ServerIp:port/service/federatedservice/ ? If not, could you please tell me where to set parameters? It's a bit difficult for me to find it out.

@VatsaPatel
Copy link

The training process expects three arguments:

train string to trigger the process
A valid directory to save the resulting model
The third optional argument can be web to start the UI monitor provided by DL4J

@JieZhou0805
Copy link
Author

When I run main.kt, the program will report an error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 at com.mccorby.photolabeller.ml.MainKt.main(Main.kt:42)
Process finished with exit code 1

How could I solve this problem? Thank you very much for your answer.

@AlexNmSED
Copy link

When I run main.kt, the program will report an error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 at com.mccorby.photolabeller.ml.MainKt.main(Main.kt:42)
Process finished with exit code 1

How could I solve this problem? Thank you very much for your answer.

I met the same situation. Have you solved it yet?

@Allanwby0516
Copy link

Hi @AlexNmSED @JieZhou0805
I solved this 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

4 participants