# Create Adv S target samples
python experiments/transfer_cifar10c_levels/attack_gen.py

# Run DANN on Adv S target samples
CUDA_VISIBLE_DEVICES=0 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption gaussian_noise
CUDA_VISIBLE_DEVICES=0 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption shot_noise
CUDA_VISIBLE_DEVICES=0 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption impulse_noise
CUDA_VISIBLE_DEVICES=0 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption defocus_blur
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption glass_blur
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption motion_blur
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption zoom_blur
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption snow
CUDA_VISIBLE_DEVICES=2 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption frost
CUDA_VISIBLE_DEVICES=2 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption fog
CUDA_VISIBLE_DEVICES=2 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption brightness
CUDA_VISIBLE_DEVICES=2 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption contrast
CUDA_VISIBLE_DEVICES=3 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption elastic_transform
CUDA_VISIBLE_DEVICES=3 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption pixelate
CUDA_VISIBLE_DEVICES=3 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --corruption jpeg_compression

# Creat AdvT target samples 
CUDA_VISIBLE_DEVICES=0 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption gaussian_noise
CUDA_VISIBLE_DEVICES=0 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption shot_noise
CUDA_VISIBLE_DEVICES=0 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption impulse_noise
CUDA_VISIBLE_DEVICES=0 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption defocus_blur
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption glass_blur
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption motion_blur
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption zoom_blur
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption snow
CUDA_VISIBLE_DEVICES=2 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption frost
CUDA_VISIBLE_DEVICES=2 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption fog
CUDA_VISIBLE_DEVICES=2 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption brightness
CUDA_VISIBLE_DEVICES=2 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption contrast
CUDA_VISIBLE_DEVICES=3 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption elastic_transform
CUDA_VISIBLE_DEVICES=3 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption pixelate
CUDA_VISIBLE_DEVICES=3 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type advT --corruption jpeg_compression

# Run DANN on cifar109-c target samples
CUDA_VISIBLE_DEVICES=0 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption gaussian_noise
CUDA_VISIBLE_DEVICES=0 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption shot_noise
CUDA_VISIBLE_DEVICES=0 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption impulse_noise
CUDA_VISIBLE_DEVICES=0 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption defocus_blur
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption glass_blur
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption motion_blur
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption zoom_blur
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption snow
CUDA_VISIBLE_DEVICES=2 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption frost
CUDA_VISIBLE_DEVICES=2 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption fog
CUDA_VISIBLE_DEVICES=2 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption brightness
CUDA_VISIBLE_DEVICES=2 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption contrast
CUDA_VISIBLE_DEVICES=3 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption elastic_transform
CUDA_VISIBLE_DEVICES=3 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption pixelate
CUDA_VISIBLE_DEVICES=3 python experiments/transfer_cifar10c_levels/DANN_CIFAR10c_lvls.py --adv_type none --corruption jpeg_compression


# Effect of the target sample size on the test time robustness for DANN
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10/DANN_CIFAR10_adv.py --subsample_size 10000
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10/DANN_CIFAR10_adv.py --subsample_size 5000
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10/DANN_CIFAR10_adv.py --subsample_size 2000
CUDA_VISIBLE_DEVICES=1 python experiments/transfer_cifar10/DANN_CIFAR10_adv.py --subsample_size 1000
