template to llm desc

This commit is contained in:
2026-02-04 01:03:23 +08:00
parent bb95c77b63
commit f9beacf476
31 changed files with 39563 additions and 13 deletions

View File

@@ -0,0 +1,22 @@
seeds=(1 2 3)
datasets=(
"ucf101"
"eurosat"
"oxford_pets"
"food101"
"oxford_flowers"
"dtd"
"caltech101"
"fgvc_aircraft"
"stanford_cars"
# "sun397"
# "imagenet"
)
for dataset in "${datasets[@]}"; do
for seed in "${seeds[@]}"; do
bash scripts/promptsrc/base2new_train.sh "$dataset" "$seed"
bash scripts/promptsrc/base2new_test.sh "$dataset" "$seed"
done
done

View File

@@ -2,7 +2,7 @@
# custom config
DATA="/path/to/dataset/folder"
DATA="~/Datasets/CoOp"
TRAINER=PromptSRC
DATASET=$1
@@ -50,4 +50,4 @@ else
--eval-only \
DATASET.NUM_SHOTS ${SHOTS} \
DATASET.SUBSAMPLE_CLASSES ${SUB}
fi
fi

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# custom config
DATA="/path/to/dataset/folder"
DATA="~/Datasets/CoOp"
TRAINER=PromptSRC
DATASET=$1
@@ -34,4 +34,4 @@ else
--output-dir ${DIR} \
DATASET.NUM_SHOTS ${SHOTS} \
DATASET.SUBSAMPLE_CLASSES base
fi
fi