Questions tagged [pysyft]
39 questions
1
vote
1 answer
RuntimeError: input.size(-1) must be equal to input_size. Expected 200, got 0 ---- PySyft / PyTorch / Federated Learning
does anyone know a solution for this Error? I am trying to switch my PyTorch network to an Federated Learning network but i always get this Error.
I'm using Google Colab an train on GPU. When I print the size of embeds I get 0, but I don't…

Tobias Koch
- 11
- 1
1
vote
2 answers
How can I download a pip whl, change the version of dependencies and build a whl file again to install it with pip?
I want to install PySyft via pip on a Jetson TX2.
Unfortunately, I have a big problem with the dependencies here and the Jetson TX2. As an example, I want to change the dependency torch==1.4.0 to torch>=1.4.0 or torch==1.6.0 because I can't install…

Patrick Selle
- 11
- 2
1
vote
2 answers
Could not find a version that satisfies the requirement torch~=1.4.0 (from syft) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
I get the above error while installing syft package through Anaconda command. I followed the below link exactly as is,
https://medium.com/secure-and-private-ai-writing-challenge/installing-pysyft-package-ffa1ff0ad83c
Following commands were used:…

Varun kadekar
- 427
- 6
- 15
1
vote
1 answer
Pysyft client and server
This question is with regards to my project on federated learning using the pysyft library, but those with the knowledge of websockets can help too since pysyft uses websockets for the server and client interaction.
To start off, i have an issue…

Seph
- 21
- 3
1
vote
1 answer
Pysyft Federated learning, Error with Websockets
I am trying to run a federated learning from pysyft (https://github.com/OpenMined/PySyft/blob/dev/examples/tutorials/advanced/websockets-example-MNIST-parallel/Asynchronous-federated-learning-on-MNIST.ipynb) that creates remote workers and connect…

santhosh mohan
- 43
- 6
1
vote
1 answer
PureFrameworkTensorFoundError, Runtime error -FedeartedLearning
I am trying a Linear Regression algorithm with Federated learning using Pytorch and I face the following error. I am implementing it on Colab. According to me this error might be due to some code line in the train() function. Kindly help is you have…

COCO.J
- 103
- 2
- 6
1
vote
1 answer
pysyft torrch.jit. script RuntimeError: undefined value _Reduction
I was trying to reproduce Pysyft Asynchronous-federated-learning-on-MNIST from its advanced example. where @torch.jit.script is used before loss function. I am getting this error and have no clue what this is about
RuntimeError: undefined value…

A.B
- 20,110
- 3
- 37
- 71
0
votes
0 answers
PySyft hagrid launch local-node terminal stuck at Pulling Images .....0%
I have followed the steps to install pysyft in Linux at https://openmined.github.io/PySyft/install_tutorials/linux.html##. Everything got installed and able to run docker run hello-world. However, whenever I tried the command hagrid launch…

user3234723
- 31
- 4
0
votes
0 answers
ValueError: Expected input batch_size (392) to match target batch_size (1)
I would like to reproduce a federated code with PySyft with image dataset (224,224,3)
So here is my code
hook = sy.TorchHook(torch)
bob = sy.VirtualWorker(hook, id="bob")
alice = sy.VirtualWorker(hook, id="alice")
class Arguments():
def…

seni
- 659
- 1
- 8
- 20
0
votes
0 answers
AttributeError : module 'torchvision.datasets' has no attribute 'Kinetics400'
I am importing the following modules :
from torchvision import datasets, transforms
from torch.utils.data import DataLoader, Dataset
import syft as sy
I am getting the following error :
Output exceeds the size limit. Open the full output…

Iti
- 121
- 5
0
votes
1 answer
Pysyft Federated Learning :model.get() triggers error with ResNet50
I work with PySyft, I would like to train a ResNet50 model
Here is a part of my code:
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.model = models.resnet50(pretrained=False)
self.fc1 =…

seni
- 659
- 1
- 8
- 20
0
votes
0 answers
'DataLoader' object has no attribute 'federate'
I want to get a federated dataset with pytorch so I write this :
training_dataset = datasets.ImageFolder(\data)
train_set = torch.utils.data.DataLoader(training_dataset, batch_size=20, shuffle=True)
base_federated=train_set.federate((bob,…

seni
- 659
- 1
- 8
- 20
0
votes
0 answers
RuntimeError: This version of jaxlib was built using AVX instructions, which your CPU and/or operating system do not support
I want to use pysyft, when I import syft moudule I get the following error:
RuntimeError: This version of jaxlib was built using AVX instructions, which your CPU and/or operating system do not support. You may be able work around this issue by…

MAOLIN
- 1
- 1
0
votes
0 answers
Encountering "UnicodeDecodeError: 'cp950' codec can't decode byte 0x9a in position 3594: illegal multibyte sequence" while installing Pysyft
I am trying to install the Pysyft with pip install syft on the anaconda powershell, and then it failed the installation.
The error pops out like this
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│…

Evan Christan123
- 1
- 1
0
votes
0 answers
How do I resolve the error "IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)"?
I tried my best to make a minimal reproducible example: there's an issue in my train() function where on the line output = model(data); I get the error IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1). I also get an…

S. Coughing
- 176
- 1
- 11