rename to dzgcoop
This commit is contained in:
30
scripts/dzgcoop/xd_train.sh
Normal file
30
scripts/dzgcoop/xd_train.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
DATA=" ~/Datasets/CoOp"
|
||||
TRAINER=DZGCoOp
|
||||
SRC_DATASETS=imagenet
|
||||
SHOTS=16
|
||||
CFG=vit_b16_c2_ep20_batch4_4+4ctx_cross_datasets
|
||||
|
||||
|
||||
for SEED in 1 2 3
|
||||
do
|
||||
DIR=output_xd/base2new/train_base/${SRC_DATASETS}/shots_${SHOTS}/${TRAINER}/${CFG}/seed${SEED}
|
||||
|
||||
if [ -d "$DIR" ]; then
|
||||
echo "Results are available in ${DIR}. Skip this job"
|
||||
else
|
||||
echo "Run this job and save the output to ${DIR}"
|
||||
|
||||
CUDA_VISIBLE_DEVICES=0 python train.py \
|
||||
--root ${DATA} \
|
||||
--seed ${SEED} \
|
||||
--trainer ${TRAINER} \
|
||||
--dataset-config-file configs/datasets/${SRC_DATASETS}.yaml \
|
||||
--config-file configs/trainers/${TRAINER}/${CFG}.yaml \
|
||||
--output-dir ${DIR} \
|
||||
DATASET.NUM_SHOTS ${SHOTS}
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user