Questions tagged [federated-learning]
167 questions
0
votes
1 answer
ModuleNotFoundError: No module named 'syft.frameworks'
I am trying to work on this example of Federated Learning.
https://towardsdatascience.com/federated-learning-3097547f8ca3
I have installed the PySyft package but I am getting this error.
ModuleNotFoundError Traceback (most…

Mina
- 47
- 1
- 9
0
votes
1 answer
Intel OpenFL - RuntimeError: mat1 and mat2 shapes cannot be multiplied (128x512 and 2048x4096)
I am trying to run my notebook (that works fine on google colab or other similar platforms) on Intel OpenFL, the new framework for FL of Intel.
I am using MNIST with this transformation:
trf = transforms.Compose(
[transforms.Resize(32),
…

CasellaJr
- 378
- 2
- 11
- 26
0
votes
1 answer
Does TFF support deployment across different devices and clouds?
I would like to deploy TFF in a way, where I have one central (aggregation) server on a VM in a cloud and two different VMs with nodes, that train the model. Is this possible with TFF? Does it have the protocols necessary to communicate over the…

Ladi
- 1
0
votes
1 answer
What is the best way to create a custom federated image dataset for TFF in SQLite format?
I went through the source for the CIFAR-100 inbuilt dataset and decided to create a compatible version for the FairFace dataset in order to be able to leverage the other built-in functions without many modifications everywhere once I convert…

Gaurav Goswami
- 32
- 5
0
votes
1 answer
Issues in setting up the environment for TensorFlow Federated on Colab
I am new to Federated Learning, and I am trying to get started with TensorFlow Federated. While working on the tutorial "Federated Learning for Image Classification" on Colab, I tried to install TensorFlow Federated, but was met with these…
0
votes
0 answers
PySyft AttributeError: 'DataFrame' object has no attribute 'federate' while reading data from csv
I am trying to implement that pysyft code for federated learing for my csv data . The tutorial i am following is this https://github.com/bt-s/Split-Learning-and-Federated-Learning/blob/master/src/federated_learning.py they used torch library FMNIST…

user12
- 761
- 8
- 24
0
votes
1 answer
Federated Learning for Image Classification in colab
I'm new in Federated learning, I tried to implement the code of FL for Image Classification, but I can't understand this line
I am confused in some detail parts. I am trying to build a sequential model in Keras, but when I train the model, I am…

amir elmjamili
- 11
- 2
0
votes
0 answers
Got an error (element 0 of tensors does not require grad and does not have a grad_fn) while performing learning using pytorch with diabates data set
I am performing Federated learning using pysyft and pytorch. I am using a diabetes dataset. I got this error while training(element 0 of tensors does not require grad and does not have a grad_fn). I am attaching the screen shots of my error and…
0
votes
1 answer
The parameters of a CNN model is returning None
i create a CNN model like this global_model = CNNMnist(args=args). Then i send it to device, set it to train. Then i train my local models, collect the local_weights and the average them to get updated global_model.
Now i am trying to get the items…

Samiur Rahman
- 63
- 1
- 6
0
votes
1 answer
How to print state of model in Federated learning
I would like to print (before training) the state of model :
with print(state['model']),
I found this error :
TypeError: 'ServerState' object is not subscriptable

seni
- 659
- 1
- 8
- 20
0
votes
1 answer
loss increase when updating "State"
I would like to update state, So here is what i wrote:
def create_keras_model():
...
return model
iterative_process = tff.learning.build_federated_averaging_process(..)
My problem is loss increase contrary to the accuracy which makes a small…

seni
- 659
- 1
- 8
- 20
0
votes
1 answer
No module named 'tensorflow_fedarated'
I'm on windows but even in google Collab I cant import it.
and I do have proper internet.
from tensorflow_federated import python as tff

aqtar parveez
- 11
- 1
0
votes
1 answer
Federated reinforcement learning
I am implementing federated deep Q-learning by PyTorch, using multiple agents, each running DQN.
My problem is that when I use multiple replay buffers for agents, each appending experiences at the corresponding agent, two elements of experiences in…

Star
- 83
- 7
0
votes
1 answer
Using federated learning for object detection
I plan to use federated learning for an object detection algorithm I already developed for detecting weeds.
As I research, I see federated tensorflow examples on Image classification. Like the following…

hossein
- 9
- 2
0
votes
1 answer
Keras load model after saving the model, why start training from the beginning?
Epoch 1/8
222/222 [==============================] - 18s 67ms/step - loss: 1.4523 - accuracy: 0.9709 - val_loss: 1.3310 - val_accuracy: 0.9865
Epoch 2/8
222/222 [==============================] - 14s 63ms/step - loss: 1.3345 - accuracy: 0.9747 -…

Jovan Mei
- 15
- 5