Please run the commands in the root path of FS-IL
.
In general, both the training and testing include the following steps:
- Prepare datasets.
- Modify config files. The config files are under the
options
folder. For more specific configuration information, please refer to Config - Run commands. Use Training Commands or Testing Commands accordingly.
PYTHONPATH="./:${PYTHONPATH}" \
CUDA_VISIBLE_DEVICES=0 \
python train.py -opt options/train/cifar/FSIL/FSIL_train_res18_cifar_CFRPModel_baseline_SGD.yml
PYTHONPATH="./:${PYTHONPATH}" \
CUDA_VISIBLE_DEVICES=0 \
python train.py -opt options/train/cifar/FSIL/FSIL_train_res18_cifar_ICaRL_SGD_01.yml
PYTHONPATH="./:${PYTHONPATH}" \
CUDA_VISIBLE_DEVICES=0 \
python train.py -opt options/train/cifar/FSIL/FSIL_train_res18_cifar_NCM_SGD.yml
PYTHONPATH="./:${PYTHONPATH}" \
CUDA_VISIBLE_DEVICES=0 \
python train.py -opt options/train/cifar/FSIL/FSIL_train_res18_cifar_CFRPModel_baseline_SGD.yml
python run_cifar_ub.py
PYTHONPATH="./:${PYTHONPATH}" \
CUDA_VISIBLE_DEVICES=0 \
python train.py -opt options/train/cifar/FSIL/FSIL_train_res18_cifar_CFRPModel_AG_ProtoFix_SGD_01.yml
PYTHONPATH="./:${PYTHONPATH}" \
CUDA_VISIBLE_DEVICES=0 \
python incremental_procedure.py -opt options/train/cifar/FSIL/incremental_res18_cifar_baseline_5shots_SGD.yml
PYTHONPATH="./:${PYTHONPATH}" \
CUDA_VISIBLE_DEVICES=0 \
python incremental_procedure_buffer.py -opt options/train/cifar/FSIL/incremental_res18_cifar_iCaRL_5shots_SGD.yml
PYTHONPATH="./:${PYTHONPATH}" \
CUDA_VISIBLE_DEVICES=0 \
python incremental_procedure_buffer.py -opt options/train/cifar/FSIL/incremental_res18_cifar_NCM_5shots_SGD.yml
PYTHONPATH="./:${PYTHONPATH}" \
CUDA_VISIBLE_DEVICES=0 \
python incremental_procedure.py -opt options/train/cifar/FSIL/incremental_res18_cifar_FSLLModel_baseline_SGD.yml
PYTHONPATH="./:${PYTHONPATH}" \
CUDA_VISIBLE_DEVICES=0 \
python train.py -opt options/train/cifar/FSIL/FSIL_train_res18_cifar_CFRPModel_AG_ProtoFix_SGD_01.yml