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

Warning: could not reach RemoteMonitor root server #11

Open
wsstriving opened this issue Jan 13, 2017 · 2 comments
Open

Warning: could not reach RemoteMonitor root server #11

wsstriving opened this issue Jan 13, 2017 · 2 comments

Comments

@wsstriving
Copy link

Hello, When I use this tool, I always got an exception:
Warning: could not reach RemoteMonitor root server at 192.168.1.2:9000

Details: I ran the python api.py on the machine with ip 192.168.1.2, and the server started normally, And then run the model training on the other machine (with gpu, but no monitor), by calling callback:
remote = RemoteMonitor(root='192.168.1.2:9000')

@bigben-plusplus
Copy link

Hi, @wsstriving , the warning comes from keras.callbacks.py:RemoteMonitor:on_epoch_end(), as shown in the following:

  ...

  def on_epoch_end(self, epoch, logs={}):
    import requests
    send = {}
    send['epoch'] = epoch
    for k, v in logs.items():
        send[k] = v
    try:
        requests.post(self.root + self.path,
                      {self.field: json.dumps(send)},
                      headers=self.headers)
    except:
        print('Warning: could not reach RemoteMonitor '
              'root server at ' + str(self.root))
  ...

It seems that an exception is raised when the requests tries to post JSON data, but it is not clear which triggered this exception, maybe network connection, maybe data formats or other stuffs. So, just remove the try...catch... block and try again, to see what exception it throws.

Hopes to help!

@AmritRaj23
Copy link

Hi @wsstriving

It works for me when running it locally in virtual env. I noticed that your missing the method when you call it. Try using it with:

remote = callbacks.RemoteMonitor()

Also, reference remote in model.fit(). Hope it works.

Amrit

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

3 participants