In this study, I evaluated the effectiveness of supervised training with MoCov3 for linear probing on Galaxy10 DECals.
- Create a conda env using
csci2952_mocov3.yml.
module load miniforge/23.11.0-0s
source /oscar/runtime/software/external/miniforge/23.11.0-0/etc/profile.d/conda.sh
mamba env create -f csci2952_mocov3.yml
conda activate csci2952_mocov3
- Now install pytorch.
interact -q gpu -g 1 -f ampere -m 20g -n 4
module load cudnn cuda
pip install torch torchvision torchaudio
- Pretraining
sbatch run_pretrain.sh
- Posttraining
sbatch run_posttrain.sh
- Evaluatino
sbatch run_eval.sh
Note: Edit the bash files to change training parameters as needed.
The results are stored in logs/800.
I use the following sites/tools for the evaluation.
-
Original MAE implementation
https://github.com/facebookresearch/moco-v3
https://github.com/facebookresearch/mae -
ChatGPT
- How to use a custom dataset
- How to use args in a bash file
- Debugging