-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename finetune_new and pretrain_new to finetune and pretrain
- Loading branch information
Showing
8 changed files
with
487 additions
and
1,120 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,43 @@ | ||
export CUDA_VISIBLE_DEVICES=0 | ||
|
||
|
||
SOURCES=("miniImageNet" "tieredImageNet" "ImageNet") | ||
SOURCE=${SOURCES[0]} | ||
|
||
TARGETS=("CropDisease" "ISIC" "EuroSAT" "ChestX" "places" "cub" "plantae" "cars") | ||
TARGET=${TARGETS[0]} | ||
|
||
# BACKBONE=resnet10 # for mini | ||
BACKBONE=resnet18 # for tiered and full imagenet | ||
|
||
N_SHOT=5 | ||
|
||
|
||
# Source SL | ||
for TARGET in "CropDisease" "ISIC" "EuroSAT" "ChestX" "places" "cub" "plantae" "cars"; do | ||
python finetune.py --ls --source_dataset $SOURCE --target_dataset $TARGET --backbone $BACKBONE --model "base" --tag "default" --n_shot $N_SHOT | ||
done | ||
|
||
# Target SSL | ||
for TARGET in "CropDisease" "ISIC" "EuroSAT" "ChestX" "places" "cub" "plantae" "cars"; do | ||
python finetune.py --ut --source_dataset $SOURCE --target_dataset $TARGET --backbone $BACKBONE --model "simclr" --tag "default" --n_shot $N_SHOT | ||
python finetune.py --ut --source_dataset $SOURCE --target_dataset $TARGET --backbone $BACKBONE --model "byol" --tag "default" --n_shot $N_SHOT | ||
done | ||
|
||
# MSL (Source SL + Target SSL) | ||
for TARGET in "CropDisease" "ISIC" "EuroSAT" "ChestX" "places" "cub" "plantae" "cars"; do | ||
python finetune.py --ls --ut --source_dataset $SOURCE --target_dataset $TARGET --backbone $BACKBONE --model "simclr" --tag "gamma78" --n_shot $N_SHOT | ||
python finetune.py --ls --ut --source_dataset $SOURCE --target_dataset $TARGET --backbone $BACKBONE --model "byol" --tag "gamma78" --n_shot $N_SHOT | ||
done | ||
|
||
# Two-Stage SSL (Source SL -> Target SSL) | ||
for TARGET in "CropDisease" "ISIC" "EuroSAT" "ChestX" "places" "cub" "plantae" "cars"; do | ||
python finetune.py --pls --ut --source_dataset $SOURCE --target_dataset $TARGET --backbone $BACKBONE --model "simclr" --tag "default" --n_shot $N_SHOT | ||
python finetune.py --pls --ut --source_dataset $SOURCE --target_dataset $TARGET --backbone $BACKBONE --model "byol" --tag "default" --n_shot $N_SHOT | ||
done | ||
|
||
# Two-Stage MSL (Source SL -> Source SL + Target SSL) | ||
for TARGET in "CropDisease" "ISIC" "EuroSAT" "ChestX" "places" "cub" "plantae" "cars"; do | ||
python finetune.py --pls --ls --ut --source_dataset $SOURCE --target_dataset $TARGET --backbone $BACKBONE --model "simclr" --tag "gamma78" --n_shot $N_SHOT | ||
python finetune.py --pls --ls --ut --source_dataset $SOURCE --target_dataset $TARGET --backbone $BACKBONE --model "byol" --tag "gamma78" --n_shot $N_SHOT | ||
done |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.