first commit

This commit is contained in:
CownowAn
2024-03-15 14:38:51 +00:00
commit bc2ed1304f
321 changed files with 44802 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
echo '[Downloading processed]'
python main_exp/get_files/get_preprocessed_data.py
python main_exp/get_files/get_preprocessed_score_model_data.py

View File

@@ -0,0 +1,13 @@
DATANAME=$1
if [[ $DATANAME = 'aircraft' ]]; then
echo '[Downloading aircraft]'
python main_exp/get_files/get_aircraft.py
elif [[ $DATANAME = 'pets' ]]; then
echo '[Downloading pets]'
python main_exp/get_files/get_pets.py
else
echo 'Not Implemeted'
fi

View File

@@ -0,0 +1,5 @@
FOLDER_NAME='tr_meta_surrogate_ofa'
CUDA_VISIBLE_DEVICES=$1 python main.py --config configs/tr_meta_surrogate_ofa.py \
--mode train \
--config.folder_name $FOLDER_NAME

View File

@@ -0,0 +1,5 @@
FOLDER_NAME='tr_scorenet_ofa'
CUDA_VISIBLE_DEVICES=$1 python main.py --config configs/tr_scorenet_ofa.py \
--mode train \
--config.folder_name $FOLDER_NAME

View File

@@ -0,0 +1,14 @@
FOLDER_NAME='transfer_nag_ofa'
N=30
GENSAMPLES=5000
GPU=$1
DATANAME=$2
CUDA_VISIBLE_DEVICES=$GPU python main_exp/run_transfer_nag.py \
--test --data-name $DATANAME --gpu $GPU \
--folder_name $FOLDER_NAME \
--nvt 27 --search_space ofa --graph-data-name ofa \
--epochs 500 --n_gen_samples $GENSAMPLES --classifier_scale 500 \
--n_training_samples $N