model=$1 if [ ! -n "$1" ] then echo 'pelease input the model para: {deitbase,…
- User
model=1" ] then echo 'pelease input the model para: {deit_base, deit_small}' exit 8 fi if [ model == 'deit_base' ] then model_type='uda_vit_base_patch16_224_TransReID' gpus="('0,1')" else model='deit_small' model_type='uda_vit_small_patch16_224_TransReID' gpus="('0')" fi for target_dataset in 'dslr' 'webcam' do python train.py --config_file configs/uda.yml MODEL.DEVICE_ID gpus
OUTPUT_DIR '../logs/uda/'target_dataset MODEL.PRETRAIN_PATH '../logs/pretrain/'target_dataset'_list.txt' DATASETS.ROOT_TEST_DIR './data/office31/'model_type SOLVER.LOG_PERIOD 10 \ - Assistant
This script is a bash script designed to train a transformer-based model for unsupervised domain adaptation (UDA) using the TransReID framework. It performs the following steps:
-
Model Selection:
- The script expects a model type as the first argument, either
deit_baseordeit_small. - If no model type is provided, it prompts the user to input the model parameter and exits with an error code
8.
- The script expects a model type as the first argument, either
-
Model Configuration:
-