-
Notifications
You must be signed in to change notification settings - Fork 63
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
0 parents
commit 17f7cb5
Showing
183 changed files
with
49,707 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,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: d5c1b9e9bb8d82f448a9ba8864bf23fc | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 @@ | ||
|
||
TrojanZoo documentation | ||
======================== | ||
TrojanZoo is a universal pytorch platform for conducting security researches (especially for backdoor attacks/defenses) for image classification in deep learning. | ||
|
||
.. toctree:: | ||
:caption: Tutorials | ||
:titlesonly: | ||
|
||
basic <tutorials/basic> | ||
|
||
.. toctree:: | ||
:caption: TrojanZoo Documentation | ||
:titlesonly: | ||
|
||
trojanzoo <trojanzoo/index> | ||
trojanvision <trojanvision/index> | ||
|
||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` |
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,6 @@ | ||
.. _trojanvision.attacks.adv: | ||
|
||
adv | ||
================ | ||
|
||
.. currentmodule:: trojanvision.attacks |
12 changes: 12 additions & 0 deletions
12
_sources/trojanvision/attacks/backdoor/clean_label.rst.txt
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,12 @@ | ||
.. _trojanvision.attacks.backdoor.clean_label: | ||
|
||
clean_label | ||
================ | ||
|
||
.. currentmodule:: trojanvision.attacks | ||
|
||
.. autoclass:: InvisiblePoison | ||
:members: | ||
|
||
.. autoclass:: Refool | ||
:members: |
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,9 @@ | ||
.. _trojanvision.attacks.backdoor.dynamic: | ||
|
||
dynamic | ||
================ | ||
|
||
.. currentmodule:: trojanvision.attacks | ||
|
||
.. autoclass:: InputAwareDynamic | ||
:members: |
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,13 @@ | ||
.. _trojanvision.attacks.backdoor: | ||
|
||
backdoor | ||
================ | ||
|
||
.. currentmodule:: trojanvision.attacks | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
normal | ||
clean_label | ||
dynamic |
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,21 @@ | ||
.. _trojanvision.attacks.backdoor.normal: | ||
|
||
normal | ||
================ | ||
|
||
.. currentmodule:: trojanvision.attacks | ||
|
||
.. autoclass:: BadNet | ||
:members: | ||
|
||
.. autoclass:: TrojanNN | ||
:members: | ||
|
||
.. autoclass:: IMC | ||
:members: | ||
|
||
.. autoclass:: LatentBackdoor | ||
:members: | ||
|
||
.. autoclass:: TrojanNet | ||
:members: |
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,26 @@ | ||
.. _trojanvision.attacks: | ||
|
||
attacks | ||
======== | ||
|
||
.. currentmodule:: trojanvision.attacks | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
|
||
adv | ||
backdoor/index | ||
|
||
|
||
.. autofunction:: add_argument | ||
.. autofunction:: create | ||
|
||
.. autoclass:: BackdoorAttack | ||
:members: | ||
|
||
.. autoclass:: CleanLabelBackdoor | ||
:members: | ||
|
||
.. autoclass:: DynamicBackdoor | ||
:members: |
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,9 @@ | ||
.. _trojanvision.configs: | ||
|
||
configs | ||
======== | ||
|
||
.. currentmodule:: trojanvision.configs | ||
|
||
.. automodule:: trojanvision.configs | ||
:members: |
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,23 @@ | ||
.. _trojanvision.datasets.folder: | ||
|
||
folder | ||
======= | ||
.. currentmodule:: trojanvision.datasets | ||
|
||
.. autoclass:: CUB200 | ||
:members: | ||
|
||
.. autoclass:: CUB200_2011 | ||
:members: | ||
|
||
.. autoclass:: GTSRB | ||
:members: | ||
|
||
.. autoclass:: ImageNet | ||
:members: | ||
|
||
.. autoclass:: ISIC2018 | ||
:members: | ||
|
||
.. autoclass:: VGGface2 | ||
:members: |
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,20 @@ | ||
.. _trojanvision.datasets: | ||
|
||
datasets | ||
========= | ||
.. currentmodule:: trojanvision.datasets | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
normal | ||
folder | ||
|
||
.. autofunction:: add_argument | ||
.. autofunction:: create | ||
|
||
.. autoclass:: ImageSet | ||
:members: | ||
|
||
.. autoclass:: ImageFolder | ||
:members: |
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,23 @@ | ||
.. _trojanvision.datasets.normal: | ||
|
||
normal | ||
======= | ||
.. currentmodule:: trojanvision.datasets | ||
|
||
.. autoclass:: MNIST | ||
:members: | ||
|
||
.. autoclass:: CIFAR10 | ||
:members: | ||
|
||
.. autoclass:: CIFAR100 | ||
:members: | ||
|
||
.. autoclass:: ImageNet16 | ||
:members: | ||
|
||
.. autoclass:: ImageNet32 | ||
:members: | ||
|
||
.. autoclass:: STL10 | ||
:members: |
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,6 @@ | ||
.. _trojanvision.defenses.adv: | ||
|
||
adv | ||
==== | ||
|
||
.. currentmodule:: trojanvision.defenses |
21 changes: 21 additions & 0 deletions
21
_sources/trojanvision/defenses/backdoor/attack_agnostic.rst.txt
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,21 @@ | ||
.. _trojanvision.defenses.backdoor.attack_agnostic: | ||
|
||
attack_agnostic | ||
================ | ||
|
||
.. currentmodule:: trojanvision.defenses | ||
|
||
.. autoclass:: AdvTrain | ||
:members: | ||
|
||
.. autoclass:: FinePruning | ||
:members: | ||
|
||
.. autoclass:: MagNet | ||
:members: | ||
|
||
.. autoclass:: RandomizedSmooth | ||
:members: | ||
|
||
.. autoclass:: Recompress | ||
:members: |
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,14 @@ | ||
.. _trojanvision.defenses.backdoor: | ||
|
||
backdoor | ||
========= | ||
|
||
.. currentmodule:: trojanvision.defenses | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
attack_agnostic | ||
input_filtering | ||
training_filtering | ||
model_inspection |
12 changes: 12 additions & 0 deletions
12
_sources/trojanvision/defenses/backdoor/input_filtering.rst.txt
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,12 @@ | ||
.. _trojanvision.defenses.backdoor.input_filtering: | ||
|
||
input_filtering | ||
================ | ||
|
||
.. currentmodule:: trojanvision.defenses | ||
|
||
.. autoclass:: Neo | ||
:members: | ||
|
||
.. autoclass:: Strip | ||
:members: |
21 changes: 21 additions & 0 deletions
21
_sources/trojanvision/defenses/backdoor/model_inspection.rst.txt
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,21 @@ | ||
.. _trojanvision.defenses.backdoor.model_inspection: | ||
|
||
model_inspection | ||
================= | ||
|
||
.. currentmodule:: trojanvision.defenses | ||
|
||
.. autoclass:: ABS | ||
:members: | ||
|
||
.. autoclass:: DeepInspect | ||
:members: | ||
|
||
.. autoclass:: NeuralCleanse | ||
:members: | ||
|
||
.. autoclass:: NeuronInspect | ||
:members: | ||
|
||
.. autoclass:: Tabor | ||
:members: |
12 changes: 12 additions & 0 deletions
12
_sources/trojanvision/defenses/backdoor/training_filtering.rst.txt
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,12 @@ | ||
.. _trojanvision.defenses.backdoor.training_filtering: | ||
|
||
training_filtering | ||
=================== | ||
|
||
.. currentmodule:: trojanvision.defenses | ||
|
||
.. autoclass:: ActivationClustering | ||
:members: | ||
|
||
.. .. autoclass:: SpectralSignature | ||
.. :members: |
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,28 @@ | ||
.. _trojanvision.defenses: | ||
|
||
defenses | ||
========= | ||
|
||
.. currentmodule:: trojanvision.defenses | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
|
||
adv | ||
backdoor/index | ||
|
||
|
||
.. autofunction:: add_argument | ||
.. autofunction:: create | ||
|
||
.. autoclass:: BackdoorDefense | ||
:members: | ||
|
||
.. autoclass:: InputFiltering | ||
:members: | ||
|
||
.. autoclass:: TrainingFiltering | ||
:members: | ||
|
||
.. autoclass:: ModelInspection | ||
:members: |
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,8 @@ | ||
.. _trojanvision.environ: | ||
|
||
environ | ||
======== | ||
|
||
.. currentmodule:: trojanvision.environ | ||
|
||
.. automodule:: trojanvision.environ |
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,18 @@ | ||
.. _trojanvision: | ||
|
||
trojanvision | ||
============= | ||
|
||
.. toctree:: | ||
:titlesonly: | ||
|
||
attacks/index | ||
configs | ||
datasets/index | ||
defenses/index | ||
environ | ||
marks | ||
models/index | ||
optim | ||
trainer | ||
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,12 @@ | ||
.. _trojanvision.marks: | ||
|
||
marks | ||
====== | ||
|
||
.. currentmodule:: trojanvision.marks | ||
|
||
.. autofunction:: add_argument | ||
.. autofunction:: create | ||
|
||
.. autoclass:: Watermark | ||
:members: |
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,20 @@ | ||
.. _trojanvision.models: | ||
|
||
models | ||
======= | ||
|
||
.. currentmodule:: trojanvision.models | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
torchvision | ||
nas | ||
others | ||
|
||
.. autofunction:: add_argument | ||
.. autofunction:: create | ||
.. autofunction:: output_available_models | ||
|
||
.. autoclass:: ImageModel | ||
:members: |
Oops, something went wrong.