-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
566abba
commit 54f8839
Showing
605 changed files
with
122,095 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[run] | ||
branch = True | ||
source = art | ||
|
||
[report] | ||
exclude_lines = | ||
if self.debug: | ||
pragma: no cover | ||
raise NotImplementedError | ||
if __name__ == .__main__.: | ||
ignore_errors = True | ||
omit = | ||
docs/* | ||
examples/* | ||
notebooks/* | ||
tests/* | ||
utils/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
./venv* | ||
.git | ||
./TMP/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Remove IPython notebooks from language statistics | ||
*.ipynb linguist-detectable=false |
27 changes: 27 additions & 0 deletions
27
adversarial-robustness-toolbox/.github/ISSUE_TEMPLATE/bug_report.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: Bug report | ||
about: Report a bug in ART | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**System information (please complete the following information):** | ||
- OS | ||
- Python version | ||
- ART version or commit number | ||
- TensorFlow / Keras / PyTorch / MXNet version |
17 changes: 17 additions & 0 deletions
17
adversarial-robustness-toolbox/.github/ISSUE_TEMPLATE/feature_request.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for improving ART | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
assignees: | ||
- "beat-buesser" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
assignees: | ||
- "beat-buesser" |
80 changes: 80 additions & 0 deletions
80
adversarial-robustness-toolbox/.github/workflows/ci-mxnet.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: Continuous Integration | ||
on: | ||
# Run on manual trigger | ||
workflow_dispatch: | ||
|
||
# Run on pull requests | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
|
||
# Run when pushing to main or dev branches | ||
push: | ||
branches: | ||
- main | ||
- dev* | ||
|
||
# Run scheduled CI flow daily | ||
schedule: | ||
- cron: '0 8 * * 0' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-16.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: mxnet (Python 3.7) | ||
framework: mxnet | ||
python: 3.7 | ||
- name: legacy (TensorFlow 2.3.2 Keras 2.4.3 PyTorch 1.7.1 scikit-learn 0.22.2 Python 3.7) | ||
framework: legacy | ||
python: 3.7 | ||
tensorflow: 2.3.2 | ||
keras: 2.4.3 | ||
scikit-learn: 0.22.2 | ||
torch: 1.7.1+cpu | ||
torchvision: 0.8.2+cpu | ||
torchaudio: 0.7.2 | ||
- name: legacy (TensorFlow 2.4.1 Keras 2.4.3 PyTorch 1.7.1 scikit-learn 0.23.2 Python 3.7) | ||
framework: legacy | ||
python: 3.7 | ||
tensorflow: 2.4.1 | ||
keras: 2.4.3 | ||
torch: 1.7.1+cpu | ||
torchvision: 0.8.2+cpu | ||
torchaudio: 0.7.2 | ||
scikit-learn: 0.23.2 | ||
|
||
name: Run ${{ matrix.name }} Tests | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y -q install ffmpeg libavcodec-extra | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install tensorflow==2.4.1 | ||
pip install keras==2.4.3 | ||
pip3 install -q -r requirements.txt | ||
pip list | ||
- name: Pre-install legacy | ||
if: ${{ matrix.framework == 'legacy' }} | ||
run: | | ||
pip install tensorflow==${{ matrix.tensorflow }} | ||
pip install keras==${{ matrix.keras }} | ||
pip install scikit-learn==${{ matrix.scikit-learn }} | ||
pip install torch==${{ matrix.torch }} -f https://download.pytorch.org/whl/torch_stable.html | ||
pip install torchvision==${{ matrix.torchvision }} -f https://download.pytorch.org/whl/torch_stable.html | ||
pip install torchaudio==${{ matrix.torchaudio }} -f https://download.pytorch.org/whl/torch_stable.html | ||
pip list | ||
- name: Run ${{ matrix.name }} Tests | ||
run: ./run_tests.sh ${{ matrix.framework }} | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 |
190 changes: 190 additions & 0 deletions
190
adversarial-robustness-toolbox/.github/workflows/ci.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
name: Continuous Integration | ||
on: | ||
# Run on manual trigger | ||
workflow_dispatch: | ||
|
||
# Run on pull requests | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
|
||
# Run when pushing to main or dev branches | ||
push: | ||
branches: | ||
- main | ||
- dev* | ||
|
||
# Run scheduled CI flow daily | ||
schedule: | ||
- cron: '0 8 * * 0' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: TensorFlow 1.15.5 (Keras 2.2.5 Python 3.7) | ||
framework: tensorflow | ||
python: 3.7 | ||
tensorflow: 1.15.5 | ||
tf_version: v1 | ||
keras: 2.2.5 | ||
- name: TensorFlow 2.3.2 (Keras 2.4.3 Python 3.7) | ||
framework: tensorflow | ||
python: 3.7 | ||
tensorflow: 2.3.2 | ||
tf_version: v2 | ||
keras: 2.4.3 | ||
- name: TensorFlow 2.4.1v1 (Keras 2.4.3 Python 3.8) | ||
framework: tensorflow2v1 | ||
python: 3.8 | ||
tensorflow: 2.4.1 | ||
tf_version: v2 | ||
keras: 2.4.3 | ||
- name: TensorFlow 2.4.1 (Keras 2.4.3 Python 3.8) | ||
framework: tensorflow | ||
python: 3.8 | ||
tensorflow: 2.4.1 | ||
tf_version: v2 | ||
keras: 2.4.3 | ||
- name: Keras 2.3.1 (TensorFlow 2.2.1 Python 3.7) | ||
framework: keras | ||
python: 3.7 | ||
tensorflow: 2.2.1 | ||
keras: 2.3.1 | ||
- name: TensorFlow-Keras 2.3.2 (Keras 2.4.3 Python 3.7) | ||
framework: kerastf | ||
python: 3.7 | ||
tensorflow: 2.3.2 | ||
keras: 2.4.3 | ||
- name: PyTorch (Python 3.7) | ||
framework: pytorch | ||
python: 3.7 | ||
torch: 1.7.1+cpu | ||
torchvision: 0.8.2+cpu | ||
torchaudio: 0.7.2 | ||
- name: scikit-learn 0.22.2 (Python 3.7) | ||
framework: scikitlearn | ||
scikit-learn: 0.22.2 | ||
python: 3.7 | ||
- name: scikit-learn 0.23.2 (Python 3.8) | ||
framework: scikitlearn | ||
scikit-learn: 0.23.2 | ||
python: 3.8 | ||
- name: TensorFlow+Lingvo 2.1.0v1 (Keras 2.3.1 Python 3.6) | ||
framework: tensorflow2v1 | ||
python: 3.6 | ||
tensorflow: 2.1.0 | ||
tf_version: v2 | ||
keras: 2.3.1 | ||
lingvo: 0.6.4 | ||
# - name: mxnet (Python 3.7) | ||
# framework: mxnet | ||
# python: 3.7 | ||
# - name: legacy (TensorFlow 2.3.2 Keras 2.4.3 PyTorch 1.7.1 scikit-learn 0.22.2 Python 3.7) | ||
# framework: legacy | ||
# python: 3.7 | ||
# tensorflow: 2.3.2 | ||
# keras: 2.4.3 | ||
# scikit-learn: 0.22.2 | ||
# torch: 1.7.1+cpu | ||
# torchvision: 0.8.2+cpu | ||
# torchaudio: 0.7.2 | ||
# - name: legacy (TensorFlow 2.4.1 Keras 2.4.3 PyTorch 1.7.1 scikit-learn 0.23.2 Python 3.7) | ||
# framework: legacy | ||
# python: 3.7 | ||
# tensorflow: 2.4.1 | ||
# keras: 2.4.3 | ||
# torch: 1.7.1+cpu | ||
# torchvision: 0.8.2+cpu | ||
# torchaudio: 0.7.2 | ||
# scikit-learn: 0.23.2 | ||
|
||
name: Run ${{ matrix.name }} Tests | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y -q install ffmpeg libavcodec-extra | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install tensorflow==2.4.1 | ||
pip install keras==2.4.3 | ||
pip3 install -q -r requirements.txt | ||
pip list | ||
- name: Pre-install legacy | ||
if: ${{ matrix.framework == 'legacy' }} | ||
run: | | ||
pip install tensorflow==${{ matrix.tensorflow }} | ||
pip install keras==${{ matrix.keras }} | ||
pip install scikit-learn==${{ matrix.scikit-learn }} | ||
pip install torch==${{ matrix.torch }} -f https://download.pytorch.org/whl/torch_stable.html | ||
pip install torchvision==${{ matrix.torchvision }} -f https://download.pytorch.org/whl/torch_stable.html | ||
pip install torchaudio==${{ matrix.torchaudio }} -f https://download.pytorch.org/whl/torch_stable.html | ||
pip list | ||
- name: Pre-install tensorflow | ||
if: ${{ matrix.framework == 'tensorflow' || matrix.framework == 'keras' || matrix.framework == 'kerastf' || matrix.framework == 'tensorflow2v1' }} | ||
run: | | ||
pip install tensorflow==${{ matrix.tensorflow }} | ||
pip install keras==${{ matrix.keras }} | ||
pip list | ||
- name: Pre-install scikit-learn | ||
if: ${{ matrix.framework == 'scikitlearn' }} | ||
run: | | ||
pip install scikit-learn==${{ matrix.scikit-learn }} | ||
pip list | ||
- name: Pre-install torch | ||
if: ${{ matrix.framework == 'pytorch' }} | ||
run: | | ||
pip install torch==${{ matrix.torch }} -f https://download.pytorch.org/whl/torch_stable.html | ||
pip install torchvision==${{ matrix.torchvision }} -f https://download.pytorch.org/whl/torch_stable.html | ||
pip install torchaudio==${{ matrix.torchaudio }} -f https://download.pytorch.org/whl/torch_stable.html | ||
- name: Pre-install Lingvo ASR | ||
if: ${{ matrix.tensorflow == '2.1.0' }} | ||
run: | | ||
pip install tensorflow==${{ matrix.tensorflow }} | ||
pip install lingvo==${{ matrix.lingvo }} | ||
pip install tensorflow-addons==0.9.1 | ||
pip install model-pruning-google-research==0.0.3 | ||
pip list | ||
- name: Run ${{ matrix.name }} Tests | ||
run: ./run_tests.sh ${{ matrix.framework }} | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
style: | ||
name: Style Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Pre-install | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y -q install ffmpeg libavcodec-extra | ||
pip install tensorflow==2.2.2 | ||
pip install keras==2.3.1 | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install -q pylint pycodestyle | ||
pip install -q -r requirements.txt | ||
pip list | ||
- name: pycodestyle | ||
run: (pycodestyle --ignore=C0330,C0415,E203,E231,W503 --max-line-length=120 art || exit 0) | ||
- name: pylint | ||
run: (pylint --disable=C0330,C0415,E203,E1136 -rn art || exit 0) | ||
- name: Check Types (mypy) | ||
run: (mypy art || exit 0) | ||
- name: pytest | ||
run: py.test --pep8 -m pep8 |
Oops, something went wrong.