Git Product home page Git Product logo

deepfool_mnist's Introduction

基于Mnist,DeepFool攻击ResNet18

文件说明

  • data:Mnist数据集
  • images:对抗样本,9957张,剩余43张图像网络本身无法正确分类,为原图像
  • model:ResNet18的训练函数,和预训练参数文件
  • logs:训练日志

代码文档说明

  • model.py:ResNet18网络定义
  • utils.py:其他函数
  • deepfool_fashion.py:DeepFool核心算法,当使用其他数据集时,代码中的图像预处理需要微调
  • Resnet-Deepfool.ipynd:主函数
  • tran.py:模型训练函数。

环境配置

  • python 3.7
  • pytorch 1.4.0
  • cuda 10.1

deepfool_mnist's People

Contributors

dawn-david avatar

Stargazers

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

Watchers

 avatar  avatar

deepfool_mnist's Issues

梯度相同的问题

大佬好,我在复现的时候出现一个问题,求针对两个输出对于输入的梯度的时候,得到的梯度结果相同,这是为啥

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.