Giter Club home page Giter Club logo

gifd_gradient_inversion_attack's Introduction

  • πŸ‘‹ Hi, I’m @FFHow
  • πŸ‘€ I’m interested in Trustworthy AI, Generative models, and Computer vision
  • 🌱 I’m currently studying at SIGS, Tsinghua University, majoring in computer science
  • πŸ“« Welcome Contact me at [email protected]
  • ✨ My homepage

gifd_gradient_inversion_attack's People

Contributors

ffhibnese avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gifd_gradient_inversion_attack's Issues

No such file or directory: 'gaussian_fit.pt'

Hi!
I find your work to be very interesting,
As I tried to reproduce the result from the given code, I encountered the following error:
FileNotFoundError: [Errno 2] No such file or directory: 'gaussian_fit.pt'
It seems like the file is missing from the repo, could you please upload it?

PS
I run: python3 rec_mult.py --config configs_stylegan2.yml

About MobileNetV2 support

I have a problem when I change β€œmodel'" in configs_gan_free.yml from ResNet18 to MobileNet.
It says:

Traceback (most recent call last):
File "rec_mult.py", line 90, in
model, model_seed = inversefed.construct_model(config['model'], num_classes=nclass_dict[config['dataset']], num_channels=3, seed=set_seed)
File "GIFD_new/GIFD_Gradient_Inversion_Attack/inversefed/nn/models.py", line 138, in construct_model
model.features[0] = torchvision.models.mobilenet.ConvBNReLU(num_channels, 32, stride=1) # this is fixed to width=1
AttributeError: module 'torchvision.models.mobilenet' has no attribute 'ConvBNReLU'

Then I modified line 138 in GIFD_new/GIFD_Gradient_Inversion_Attack/inversefed/nn/models.py to :

model.features[0] = torchvision.models.mobilenetv2.Conv2dNormActivation(num_channels, 32, stride=1) # this is fixed to width=1

It works. But the results are not very good, only blank images are reconstructed.

Then, my problem is, does GIFD supports MobileNetV2?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.