Skip to content

Commit

Permalink
update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
xwen99 committed Mar 15, 2023
1 parent 4051103 commit 1e0fb9d
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 14 deletions.
4 changes: 2 additions & 2 deletions scripts/run_aircraft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -x

CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
CUDA_VISIBLE_DEVICES=0 python train.py \
--dataset_name 'aircraft' \
--batch_size 128 \
--grad_from_block 11 \
Expand All @@ -18,5 +18,5 @@ CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
--warmup_teacher_temp 0.07 \
--teacher_temp 0.04 \
--warmup_teacher_temp_epochs 30 \
--memax_weight 2 \
--memax_weight 1 \
--exp_name aircraft_simgcd
4 changes: 2 additions & 2 deletions scripts/run_cars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -x

CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
CUDA_VISIBLE_DEVICES=0 python train.py \
--dataset_name 'scars' \
--batch_size 128 \
--grad_from_block 11 \
Expand All @@ -18,5 +18,5 @@ CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
--warmup_teacher_temp 0.07 \
--teacher_temp 0.04 \
--warmup_teacher_temp_epochs 30 \
--memax_weight 2 \
--memax_weight 1 \
--exp_name scars_simgcd
4 changes: 2 additions & 2 deletions scripts/run_cifar10.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -x

CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
CUDA_VISIBLE_DEVICES=0 python train.py \
--dataset_name 'cifar10' \
--batch_size 128 \
--grad_from_block 11 \
Expand All @@ -18,5 +18,5 @@ CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
--warmup_teacher_temp 0.07 \
--teacher_temp 0.04 \
--warmup_teacher_temp_epochs 30 \
--memax_weight 2 \
--memax_weight 1 \
--exp_name cifar10_simgcd
4 changes: 2 additions & 2 deletions scripts/run_cifar100.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -x

CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
CUDA_VISIBLE_DEVICES=0 python train.py \
--dataset_name 'cifar100' \
--batch_size 128 \
--grad_from_block 11 \
Expand All @@ -18,5 +18,5 @@ CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
--warmup_teacher_temp 0.07 \
--teacher_temp 0.04 \
--warmup_teacher_temp_epochs 30 \
--memax_weight 2 \
--memax_weight 4 \
--exp_name cifar100_simgcd
2 changes: 1 addition & 1 deletion scripts/run_cub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -x

CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
CUDA_VISIBLE_DEVICES=0 python train.py \
--dataset_name 'cub' \
--batch_size 128 \
--grad_from_block 11 \
Expand Down
6 changes: 3 additions & 3 deletions scripts/run_herb19.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -x

CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
CUDA_VISIBLE_DEVICES=0 python train.py \
--dataset_name 'herbarium_19' \
--batch_size 128 \
--grad_from_block 11 \
Expand All @@ -14,9 +14,9 @@ CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
--weight_decay 5e-5 \
--transform 'imagenet' \
--lr 0.1 \
--eval_funcs 'v2' 'v2p' \
--eval_funcs 'v2' 'v2b' \
--warmup_teacher_temp 0.07 \
--teacher_temp 0.04 \
--warmup_teacher_temp_epochs 30 \
--memax_weight 2 \
--memax_weight 1 \
--exp_name herb19_simgcd
4 changes: 2 additions & 2 deletions scripts/run_imagenet100.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -x

CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
CUDA_VISIBLE_DEVICES=0 python train.py \
--dataset_name 'imagenet_100' \
--batch_size 128 \
--grad_from_block 11 \
Expand All @@ -18,5 +18,5 @@ CUDA_VISIBLE_DEVICES=0 python -m model.simgcd \
--warmup_teacher_temp 0.07 \
--teacher_temp 0.04 \
--warmup_teacher_temp_epochs 30 \
--memax_weight 2 \
--memax_weight 1 \
--exp_name imagenet100_simgcd
23 changes: 23 additions & 0 deletions scripts/run_imagenet1k.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

set -e
set -x

CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 torchrun --master_port 12348 --nproc_per_node=8 train_mp.py \
--dataset_name 'imagenet_1k' \
--batch_size 128 \
--grad_from_block 11 \
--epochs 200 \
--num_workers 8 \
--use_ssb_splits \
--sup_weight 0.35 \
--weight_decay 5e-5 \
--transform 'imagenet' \
--lr 0.1 \
--eval_funcs 'v2' \
--warmup_teacher_temp 0.07 \
--teacher_temp 0.04 \
--warmup_teacher_temp_epochs 30 \
--memax_weight 1 \
--exp_name imagenet1k_simgcd \
--print_freq 100

0 comments on commit 1e0fb9d

Please sign in to comment.