Download the pretraining dataset here and the fine-tuning dataset with the redshifting targeted augmentation applied here.
bash run_pretrain.sh /path/to/pretraining/dataset /path/to/save/model wandb_run_name
bash run_finetuning.sh \
/path/to/pretrained/model \
/path/to/save/model \
/path/to/finetuning/dataset \
wandb_run_name \
"--class_weights --test_set_path /path/to/test/dataset --seed 12345"
add --redshift_prediction
argument and remove --class_weights
to do redshift prediction instead of classification
bash run_pseudolabeling.sh \
/path/to/dataset \
/path/to/trained/model \
/path/to/dataset/labels \
/path/to/output/dir