To run the code:
-
Install the requirements
-
Train the model
python -m lightning.main --default_root_dir <path_to_save_models> --dataset_root <dataset_root_path> --precision 16 --dataset <dataset_name> --mode tr --batch_size <batch_size> --backbone <name_of_backbone> --accelerator auto --devices 1 --max_epochs <n_epochs> --lr <learning_rate> --weight_decay <weight_decay>
There are other parameters that you can pass. Refer to:
lightning/module.pyutils/parsers.py