Open gubertoli opened 2 years ago
An additional comment... I confirmed that the example of the fusion algorithm iter_avg
with keras
runs with TensorFlow 1.15. However, the fedavgplus
example with tf
runs with TensorFlow 2.1.
Hi @gubertoli Thanks for trying out IBM FL!
If you want to use Python 3.8, then only TensorFlow 2.X version will support this python version. Therefore, you will probably need TensorFlow 2.4. And in our tutorial, we clarify that KerasFLModel
only supports pure Keras model and TensorFlow 1.15. Then if you are on TFv2 models, you will need TensorFlowFLModel
, i.e., to try out our examples, you will use python examples/generate_configs.py -f iter_avg -m tf-n 2 -d mnist -p examples/data/mnist/random
.
I will suggest you trying the combination of python 3.8 and TensorFlow 2.4.1 and also use our latest release version.
Hi, I am using a computer with Python 3.8.0. I read the release note of IBM FL 1.0.6 (on slack) and it mentions the support for Python 3.8. So, first I tried to directly install from git repository, but it breaks during
pip install -r requirements.txt
once the Tensorflow==1.15 neither Tensorflow==2.1 is available for Python 3.8.Then, I downgraded to Python 3.6, upgraded pip (
pip install --upgrade pip
) and changed therequirements.txt
from Tensorflow 1.15 totensorflow==2.1
then the setup finished.But, running the MNIST example from set-up guide, I got the following error after succesfully running
generate_data.py
:Then, I also downgraded from Tensorflow 2.1 to Tensorflow 1.15. And then the set-up example using MNIST finally works! :)
So it is not clear the claim that it works with Python 3.8 and TF v2. My question is, how to effectively make IBM-FL work with TF v2 and Python 3.8 ? I reviewed previous issues and I think that this step-by-step relates to #93 and #91