A PyTorch implementation of popular self-supervised models
git clone https://github.com/youshyee/SSL.git
cd SSL
Then install the required packages:
pip install -r requirements.txt
Change the workdir path in configs, and data path Then start training
sh dist_train.sh $GPU_YOU_HAVE $CONFIG_PATH
sh dist_train.sh $GPU_NUM ./configs/simsiam.py
sh dist_train.sh $GPU_NUM ./configs/SimCLR.py
- Change the training file location
- Change the PYTHON path file
- Change the Config file path
- Change the $GPU to gpu num you want to use
Then run
sbatch st_train.sh $GPU_NUM ./configs/SimCLR.py
More model BYOL MOCO SimCLRv2 etc Stay Tuned