├── .gitignore ├── LICENSE ├── README.md ├── checkpoint ├── defense │ └── mixmatch_finetune │ │ ├── badnets │ │ └── cifar10_resnet18 │ │ │ └── example │ │ │ └── README.md │ │ └── blend │ │ └── cifar10_resnet18 │ │ └── example │ │ └── README.md └── supervise │ ├── badnets │ └── cifar10_resnet18 │ │ └── example │ │ └── README.md │ └── blend │ └── cifar10_resnet18 │ └── example │ └── README.md ├── config ├── defense │ ├── mixmatch_finetune │ │ ├── badnets │ │ │ └── cifar10_resnet18 │ │ │ │ └── example.yaml │ │ └── blend │ │ │ └── cifar10_resnet18 │ │ │ └── example.yaml │ └── simclr │ │ ├── badnets │ │ └── cifar10_resnet18 │ │ │ └── example.yaml │ │ └── blend │ │ └── cifar10_resnet18 │ │ └── example.yaml └── supervise │ ├── badnets │ └── cifar10_resnet18 │ │ └── example.yaml │ └── blend │ └── cifar10_resnet18 │ └── example.yaml ├── data ├── backdoor.py ├── cifar.py ├── dataset.py ├── prefetch.py ├── trigger │ ├── cifar_1.png │ └── hello_kitty.png └── utils.py ├── environment.yml ├── mixmatch_finetune.py ├── model ├── loss.py ├── model.py ├── network │ └── resnet_cifar.py └── utils.py ├── simclr.py ├── supervise.py ├── test.py └── utils ├── setup.py └── trainer ├── log.py ├── semi.py ├── simclr.py ├── supervise.py └── utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/README.md -------------------------------------------------------------------------------- /checkpoint/defense/mixmatch_finetune/badnets/cifar10_resnet18/example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/checkpoint/defense/mixmatch_finetune/badnets/cifar10_resnet18/example/README.md -------------------------------------------------------------------------------- /checkpoint/defense/mixmatch_finetune/blend/cifar10_resnet18/example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/checkpoint/defense/mixmatch_finetune/blend/cifar10_resnet18/example/README.md -------------------------------------------------------------------------------- /checkpoint/supervise/badnets/cifar10_resnet18/example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/checkpoint/supervise/badnets/cifar10_resnet18/example/README.md -------------------------------------------------------------------------------- /checkpoint/supervise/blend/cifar10_resnet18/example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/checkpoint/supervise/blend/cifar10_resnet18/example/README.md -------------------------------------------------------------------------------- /config/defense/mixmatch_finetune/badnets/cifar10_resnet18/example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/config/defense/mixmatch_finetune/badnets/cifar10_resnet18/example.yaml -------------------------------------------------------------------------------- /config/defense/mixmatch_finetune/blend/cifar10_resnet18/example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/config/defense/mixmatch_finetune/blend/cifar10_resnet18/example.yaml -------------------------------------------------------------------------------- /config/defense/simclr/badnets/cifar10_resnet18/example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/config/defense/simclr/badnets/cifar10_resnet18/example.yaml -------------------------------------------------------------------------------- /config/defense/simclr/blend/cifar10_resnet18/example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/config/defense/simclr/blend/cifar10_resnet18/example.yaml -------------------------------------------------------------------------------- /config/supervise/badnets/cifar10_resnet18/example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/config/supervise/badnets/cifar10_resnet18/example.yaml -------------------------------------------------------------------------------- /config/supervise/blend/cifar10_resnet18/example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/config/supervise/blend/cifar10_resnet18/example.yaml -------------------------------------------------------------------------------- /data/backdoor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/data/backdoor.py -------------------------------------------------------------------------------- /data/cifar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/data/cifar.py -------------------------------------------------------------------------------- /data/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/data/dataset.py -------------------------------------------------------------------------------- /data/prefetch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/data/prefetch.py -------------------------------------------------------------------------------- /data/trigger/cifar_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/data/trigger/cifar_1.png -------------------------------------------------------------------------------- /data/trigger/hello_kitty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/data/trigger/hello_kitty.png -------------------------------------------------------------------------------- /data/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/data/utils.py -------------------------------------------------------------------------------- /environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/environment.yml -------------------------------------------------------------------------------- /mixmatch_finetune.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/mixmatch_finetune.py -------------------------------------------------------------------------------- /model/loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/model/loss.py -------------------------------------------------------------------------------- /model/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/model/model.py -------------------------------------------------------------------------------- /model/network/resnet_cifar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/model/network/resnet_cifar.py -------------------------------------------------------------------------------- /model/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/model/utils.py -------------------------------------------------------------------------------- /simclr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/simclr.py -------------------------------------------------------------------------------- /supervise.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/supervise.py -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/test.py -------------------------------------------------------------------------------- /utils/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/utils/setup.py -------------------------------------------------------------------------------- /utils/trainer/log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/utils/trainer/log.py -------------------------------------------------------------------------------- /utils/trainer/semi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/utils/trainer/semi.py -------------------------------------------------------------------------------- /utils/trainer/simclr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/utils/trainer/simclr.py -------------------------------------------------------------------------------- /utils/trainer/supervise.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/utils/trainer/supervise.py -------------------------------------------------------------------------------- /utils/trainer/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SCLBD/DBD/HEAD/utils/trainer/utils.py --------------------------------------------------------------------------------