koukyosyumei / attack_splitnn Goto Github PK
View Code? Open in Web Editor NEWreveal the vulnerabilities of SplitNN
License: MIT License
reveal the vulnerabilities of SplitNN
License: MIT License
Attack_SplitNN currently only supports two-party SplitNN.
・We have to implement a more sophisticated SplitNN which supports multi-party.
TODO
・demonstrates how to combine different attack and defense algorithms with Attack_SplitNN.
So sorry to bother you. I have some questions.
In Shredder.ipynb, the class SplitNN is not the subclass of nn.Module, and also does not define the attribute of train. So why there is a code of splitnn.train() in first line of nineteenth block, aslo the questions is the same as splitnn.zero_grads(),splitnn.backward().
The code and the reason of fault is as following.
THX
`splitnn.train()
for epoch in range(3):
epoch_loss = 0
epoch_outputs = []
epoch_labels = []
for i, data in enumerate(victim_train_dataloader):
splitnn.zero_grads()
inputs, labels = data
inputs = inputs.to(device)
labels = labels.to(device)
outputs = splitnn(inputs)
loss = criterion(outputs, labels)
loss.backward()
epoch_loss += loss.item() / len(victim_train_dataloader.dataset)
epoch_outputs.append(outputs)
epoch_labels.append(labels)
splitnn.backward()
splitnn.step()
print(epoch_loss, accuracy(torch.cat(epoch_labels),
torch.cat(epoch_outputs)))`
`---->Shredder.ipynb#ch0000013vscode-remote?line=0) splitnn.train()
Shredder.ipynb#ch0000013vscode-remote?line=1) for epoch in range(3):
Shredder.ipynb#ch0000013vscode-remote?line=2) epoch_loss = 0
AttributeError: 'SplitNN' object has no attribute 'train'`
Hello,First of all, thank you for sharing your relevant reproducing work, but I ran the code about FSHA, but why the result was so different from the original text under the same configuration? I also modified it, but the result was still so different from the original text
The current implementation of the FSHA attack is not compatible with AbstractAttacker.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.