Skip to content

Commit

Permalink
fix(ci): lint job failing
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerwooo committed Jan 29, 2023
1 parent e515af9 commit 494bf6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup pdm
uses: pdm-project/setup-pdm@v3
with:
python-version: 3.10
python-version: "3.10"
cache: true
- name: Install dependencies
run: pdm install
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
[![pdm-managed](https://img.shields.io/badge/pdm-managed-blueviolet)](https://pdm.fming.dev)
[![lint](https://github.com/daisylab-bit/torchattack/actions/workflows/lint.yml/badge.svg)](https://github.com/daisylab-bit/torchattack/actions/workflows/lint.yml)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

A set of adversarial attacks implemented in PyTorch. _For internal use._
Expand All @@ -25,7 +26,7 @@ attack = MIFGSM(model, eps=0.03, steps=10, decay=1.0)
## Attacks

| Name | Paper | `torchattack` class |
| ---------- | -------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
| :--------- | :------------------------------------------------------------------------------------------------------------------------- | :--------------------- |
| FGSM | [Explaining and Harnessing Adversarial Examples](https://arxiv.org/abs/1412.6572) | `torchattack.FGSM` |
| PGD | [Towards Deep Learning Models Resistant to Adversarial Attacks](https://arxiv.org/abs/1706.06083) | `torchattack.PGD` |
| MI-FGSM | [Boosting Adversarial Attacks with Momentum](https://arxiv.org/abs/1710.06081) | `torchattack.MIFGSM` |
Expand Down

0 comments on commit 494bf6f

Please sign in to comment.