Home

Awesome

Fast-MoCo: Boost Momentum-based Contrastive Learning with Combinatorial Patches

Usage

Preparation

Install all required dependencies in requirements.txt and replace all ..path/..to in the code to the absolute path to corresponding resources.

*Only slurm-based distributed training support is implemented in this repo.

Experiments

All experiment files are located in ssl_exp/fast_moco folder.

To perform self-supervised training on ImageNet, run:

sh run.sh  <gpu-partition> 

To perform linear evaluation, make sure the pretrained weight is located in ./checkpoints folder or specified in config_finetune.yaml (saver.pretrain.path), run:

sh run_finetune.sh  <gpu-partition> 

Pretrained Models

BackboneModelPretrained <br/>EpochsTop-1 Linear <br/>Evaluation AccuracyPretrained Weightmd5
Resnet-50Fast-MoCo10073.5%checkpointd6ea9023372c14db94b0dc285f216f99
Resnet-50Fast-MoCo20075.1%checkpoint9f1c29ea305d9214f265fa460856db28
Resnet-50Fast-MoCo40075.5%checkpoint79ae2aff26c6cb762feaf9155b137d4a