Skip to content

Commit

Permalink
add bash file
Browse files Browse the repository at this point in the history
  • Loading branch information
yjh0410 committed Aug 22, 2023
1 parent 50bfbee commit 48ffe12
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
21 changes: 21 additions & 0 deletions vit_finetune.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# --------------- Finetune on CIFAR ---------------
python mae_finetune.py \
--dataset cifar10 \
-m vit_nano \
--batch_size 256 \
--img_size 32 \
--patch_size 2 \
--max_epoch 50 \
--wp_epoch 5 \
--mae_pretrained

# --------------- Finetune on ImageNet ---------------
# python mae_finetune.py \
# --dataset imagenet_1k \
# -m vit_nano \
# --batch_size 256 \
# --img_size 224 \
# --patch_size 16 \
# --max_epoch 50 \
# --wp_epoch 5 \
# --mae_pretrained
19 changes: 19 additions & 0 deletions vit_linprob.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# --------------- Finetune on CIFAR ---------------
python mae_finetune.py \
--dataset cifar10 \
-m vit_nano \
--batch_size 256 \
--img_size 32 \
--patch_size 2 \
--max_epoch 50 \
--wp_epoch 5 \

# --------------- Finetune on ImageNet ---------------
# python mae_finetune.py \
# --dataset imagenet_1k \
# -m vit_nano \
# --batch_size 256 \
# --img_size 224 \
# --patch_size 16 \
# --max_epoch 50 \
# --wp_epoch 5 \
20 changes: 20 additions & 0 deletions vit_pretrain.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# --------------- Pretrain on CIFAR ---------------
python mae_pretrain.py \
--dataset cifar10 \
-m mae_vit_nano \
--batch_size 256 \
--img_size 32 \
--patch_size 2 \
--max_epoch 400 \
--wp_epoch 40


# --------------- Pretrain on ImageNet ---------------
# python mae_pretrain.py \
# --dataset imagenet_1k \
# -m mae_vit_nano \
# --batch_size 256 \
# --img_size 224 \
# --patch_size 16 \
# --max_epoch 400 \
# --wp_epoch 40

0 comments on commit 48ffe12

Please sign in to comment.