项目介绍

ylsung/pytorch-adversarial-training 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,目前获得 254 个 Star、65 次 Fork。

仓库全名
ylsung/pytorch-adversarial-training
Star 数
254
Fork 数
65

README 摘要

Adversarial Training and Visualization The repo is the PyTorch-1.0 implementation for the adversarial training on MNIST/CIFAR-10. And I also reproduce part of the visualization results in [1]. Note: Not an official implementation. Adversarial Training Objective Function Standard Training Adversarial Training where p in the table is usually 2 or inf. The objective of standard and adversarial training is fundamentally…

完整内容见 GitHub 原始 README 或本页 。

常见问题

pytorch-adversarial-training 用什么语言开发?

主要使用 Python 编写,目前有 254 个 Star。

如何获取 pytorch-adversarial-training 的源码?

可以直接克隆仓库:git clone https://github.com/ylsung/pytorch-adversarial-training.git,默认分支为 master;安装与运行步骤见仓库 README。

pytorch-adversarial-training 最近还在维护吗?

仓库最近一次更新为 2020年8月27日,当前没有未关闭的 Issue;Star 数为 254,可作为社区活跃度的参考。

关于

PyTorch-1.0 implementation for the adversarial training on MNIST/CIFAR-10 and visualization on robustness classifier.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
388
价值分
172
活跃状态
活跃

语言占比

Python
Shell

贡献者

README

Adversarial Training and Visualization

The repo is the PyTorch-1.0 implementation for the adversarial training on MNIST/CIFAR-10. And I also reproduce part of the visualization results in [1].

Note: Not an official implementation.

Adversarial Training

Objective Function
Standard Training Adversarial Training

where p in the table is usually 2 or inf.

The objective of standard and adversarial training is fundamentally different. In standard training, the classifier minimize the loss computed from the original training data, while in adversarial training, it trains with the worst-case around the original data.

Visualization

In [1], the authors discover that the features learned by the robustness classifier are more human-perceivable. Related results are shown in mnist/cifar-10 folder.

Implementation

Part of the codes in this repo are borrowed/modified from [2], [3], [4] and [5].

References:

[1] D. Tsipras, S. Santurkar, L. Engstrom, A. Turner, A. Madry. Robustness May Be at Odds with Accuracy, https://arxiv.org/abs/1805.12152

[2] https://github.com/MadryLab/mnist_challenge

[3] https://github.com/MadryLab/cifar10_challenge

[4] https://github.com/xternalz/WideResNet-pytorch

[5] https://github.com/utkuozbulak/pytorch-cnn-visualizations

Contact

Yi-Lin Sung, [email protected]

评论

暂无评论