Fine-tune pre-trained models
mainTo fine-tune a model that was previously pre-trained using SimMIM, use the main_finetune.py script. You must provide the configuration file, the ImageNet data path, and the path to the pre-trained checkpoint using the --pretrained flag.
Command Template:
python -m torch.distributed.launch --nproc_per_node <num-of-gpus-to-use> main_finetune.py \
--cfg <config-file> --data-path <imagenet-path> --pretrained <pretrained-ckpt> [--batch-size <batch-size-per-gpu> --output <output-directory> --tag <job-tag>]python -m torch.distributed.launch --nproc_per_node 16 main_finetune.py \
--cfg configs/swin_base__800ep/simmim_finetune__swin_base__img224_window7__800ep.yaml --batch-size 128 --data-path <imagenet-path> --pretrained <pretrained-ckpt> [--output <output-directory> --tag <job-tag>]