Use pre-trained models or resume training
masterActionCLIP allows you to load pre-trained weights for the entire network or resume training from a checkpoint.
- Pre-trained models: Use the
pretrainkey to provide a path to a pre-trained model file. Ifpretrainis set toNone(default), the system uses the CLIP model as the pre-trained model, provided thatconfig.network.archis set toViT-B/32orViT-B/16andconfig.network.initis set toTrue. This enables zero-shot validation pre-trained on Kinetics-400. - Resuming training: Use the
resumekey to provide the path to a saved model checkpoint (e.g., a.pth.tarfile) to continue training from where it was interrupted.
# Example pretrain path
pretrain: /path/to/k400_vit32_8frame.pt
# Example resume path
resume: /path/to/checkpoint/3.pth.tar