google-research / federated

A collection of Google research projects related to Federated Learning and Federated Analytics.
Apache License 2.0
693 stars 196 forks source link

TimeoutError: [Errno 110] Connection timed out #38

Closed JerryLeeljr closed 3 years ago

JerryLeeljr commented 3 years ago

Hi, thanks for your share, I tried to run your code as Example usage do:

bazel run main:federated_trainer -- --task=emnist_cr --total_rounds=100
 --client_optimizer=sgd --client_learning_rate=0.1 --client_batch_size=20
 --server_optimizer=sgd --server_learning_rate=1.0 --clients_per_round=10
 --client_epochs_per_round=1 --experiment_name=emnist_fedavg_experiment

But I got following errors. Could you help me fix them? Thanks.

2021-05-24 22-14-35 的屏幕截图 2021-05-24 22-13-55 的屏幕截图

0xJchen commented 3 years ago

What is the python and tf version you used?

JerryLeeljr commented 3 years ago

What is the python and tf version you used?

python 3.8.5 tf 2.5.0 tensorflow_federated 0.19.0 ubuntu 20.04

wennanzhu commented 3 years ago

It seems the error is from "emnisttrain, = tff.simulation.datasets.emnist.load_data(only_digits=False)". Would you try to run only this line to see if the same error appears?

nightldj commented 3 years ago

Seems to be the /optimization project, Zach, could you take a look? Thanks.

zcharles8 commented 3 years ago

As @wennanzhu noted above, this seems to be caused by the call to tff.simulation.datasets.emnist.load_data. @JerryLeeljr could you see if you face the same error just on this call in a reproducible manner?

zcharles8 commented 3 years ago

Hi @JerryLeeljr. I'm closing this issue since it has not had any updates in a while, and I have not been able to reproduce this bug. If you are still running into this issue, feel free to re-open this or file a bug on TFF (as it seems to be entirely a TFF issue if I understand correctly).