
# $1 gpuid
# $2 runid

# base method
data=pacs #'pacs','pacs_art','pacs_cartoon','pacs_sketch']
backbone=alexnet 
pretrained=False
projection_dim=1024 
epochs=60 
batchsize=32 

lr=0.005 
lr_scheduler=step 
optimizer=sgd 
# Base Model Path
svroot=saved-model/${data}/base_${backbone}_${pretrained}_${projection_dim}_run${2} 

python3 main_base.py --gpu $1 --data ${data} --epochs ${epochs} --nbatch 100 --lr ${lr} --batchsize ${batchsize} --svroot $svroot --backbone ${backbone} --pretrained ${pretrained} --projection_dim ${projection_dim} --lr_scheduler ${lr_scheduler} --optimizer ${optimizer}
python3 main_test.py --gpu $1 --modelpath $svroot/best.pkl --svpath $svroot/test.log --backbone ${backbone} --projection_dim ${projection_dim} --data ${data}


