-
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
doxawang
committed
Jan 2, 2022
1 parent
424d665
commit 5d8e3f8
Showing
13 changed files
with
160 additions
and
68 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 |
---|---|---|
@@ -1 +1 @@ | ||
c0 sh byol.sh cifar10 resnet18 ../../linear/cifar10/datasets ../../pretrain/cifar/trained_models/byol/1m9vggjj/byol-cifar10-1m9vggjj-ep=999.ckpt | ||
c0 sh simclr.sh cifar10 resnet18 ../../linear/cifar10/datasets ../../pretrain/cifar/trained_models/byol/1m9vggjj/byol-cifar10-1m9vggjj-ep=999.ckpt |
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
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 |
---|---|---|
@@ -1,11 +1,24 @@ | ||
# i=0 | ||
# for model in byol mocov2plus simsiam supcon | ||
# do | ||
# for file in /data/yfwang/solo-learn/poison_datasets/cifar10/zoo-${model}/*.pt | ||
# do | ||
# CUDA_VISIBLE_DEVICES=${i} sh ${model}.sh cifar10 " --poison_data ${file} --use_poison --checkpoint_dir /data/yfwang/solo-learn/pretrain/cifar10 " & | ||
# i=`expr ${i} + 1` | ||
# CUDA_VISIBLE_DEVICES=${i} sh simclr.sh cifar10 " --poison_data ${file} --use_poison --checkpoint_dir /data/yfwang/solo-learn/pretrain/cifar10 " & | ||
# done | ||
# i=`expr ${i} + 1` | ||
# done | ||
|
||
i=0 | ||
for model in byol mocov2plus simsiam supcon | ||
for trigger_type in checkerboard_full checkerboard_4corner checkerboard_1corner gaussian_noise | ||
do | ||
for file in /data/yfwang/solo-learn/poison_datasets/cifar10/zoo-${model}/*.pt | ||
for file in /data/yfwang/solo-learn/poison_datasets/cifar10/zoo-simclr/cifar10_zoo-simclr_rate_0.50_target_None_trigger_${trigger_type}*.pt | ||
do | ||
CUDA_VISIBLE_DEVICES=${i} sh ${model}.sh cifar10 " --poison_data ${file} --use_poison --checkpoint_dir /data/yfwang/solo-learn/pretrain/cifar10 " & | ||
i=`expr ${i} + 1` | ||
# echo $trigger_type $file | ||
CUDA_VISIBLE_DEVICES=${i} sh simclr.sh cifar10 " --poison_data ${file} --use_poison --checkpoint_dir /data/yfwang/solo-learn/pretrain/cifar10 " & | ||
# i=`expr ${i} + 1` | ||
# CUDA_VISIBLE_DEVICES=${i} sh simclr.sh cifar10 " --poison_data ${file} --use_poison --checkpoint_dir /data/yfwang/solo-learn/pretrain/cifar10 " & | ||
done | ||
i=`expr ${i} + 1` | ||
done |
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,11 @@ | ||
i=0 | ||
for model in byol mocov2plus simsiam supcon | ||
do | ||
for file in /data/yfwang/solo-learn/poison_datasets/cifar10/zoo-${model}/*.pt | ||
do | ||
CUDA_VISIBLE_DEVICES=${i} sh ${model}.sh cifar10 " --poison_data ${file} --use_poison --checkpoint_dir /data/yfwang/solo-learn/pretrain/cifar10 " & | ||
i=`expr ${i} + 1` | ||
CUDA_VISIBLE_DEVICES=${i} sh simclr.sh cifar10 " --poison_data ${file} --use_poison --checkpoint_dir /data/yfwang/solo-learn/pretrain/cifar10 " & | ||
done | ||
i=`expr ${i} + 1` | ||
done |
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
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
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
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
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
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
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
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
Oops, something went wrong.