diff --git a/README.md b/README.md index 64e49f9..30eb9b0 100644 --- a/README.md +++ b/README.md @@ -101,13 +101,13 @@ You can store many run configurations in this file.
Example run configuration: ```yaml MNIST_CLASSIFIER_V1: - trainer: <- parameters passed to lightning 'Trainer' + trainer: <- these parameters will be passed directly to 'Trainer' object max_epochs: 5 gradient_clip_val: 0.5 accumulate_grad_batches: 1 limit_train_batches: 1.0 - model: <- parameters passed to 'LitModel' in 'hparams' dictionary - model_folder: "simple_mnist_classifier" <- name of folder from which 'lightning_module.py' (with 'LitMdodel' class) will be loaded + model: <- these parameters will be passed to 'LightningModule' object in 'hparams' dictionary + model_folder: "simple_mnist_classifier" lr: 0.001 weight_decay: 0.000001 input_size: 784 @@ -115,19 +115,27 @@ MNIST_CLASSIFIER_V1: lin1_size: 256 lin2_size: 256 lin3_size: 128 - dataset: <- parameters passed to 'DataModule' in 'hparams' dictionary - datamodule_folder: "mnist_digits_datamodule" <- name of folder from which 'datamodule.py' (with 'DataModule' class) will be loaded + dataset: <- these parameters will be passed to 'LightningDataModule' object in 'hparams' dictionary + datamodule_folder: "mnist_digits_datamodule" batch_size: 256 train_val_split_ratio: 0.9 num_workers: 1 pin_memory: False - wandb: <- this section is optional and can be removed + callbacks: + ConfusionMatrixLoggerCallback: + class_names: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] + wandb: group: "" tags: ["v1", "uwu"] - resume_training: <- this section is optional and can be removed + resume_training: checkpoint_path: "path_to_checkpoint/last.ckpt" - wandb_run_id: None <- you can set id of Weights&Biases run that you want to resume but it's optional + wandb_run_id: None # optionally set id of Weights&Biases run that you want to resume ``` +Each run configuration needs to contain sections `trainer`, `model` and `dataset`. Sections `callbacks`, `wandb` and `resume_training` are optional and can be removed.
+`model` section always needs to contain `model_folder` parameter (folder from which lightning_module.py will be loaded, which should contain 'LitModel' class).
+`dataset` section always needs to contain `datamodule_folder` parameter (folder from which datamodule.py will be loaded, which should contain 'DataModule' class).
+Every parameter in `model` section will be passed to your model class and can be retrieved through 'hparams' dictionary (see example with [simple_mnist_classifier](project/models/simple_mnist_classifier/lightning_module.py)).
+Every parameter in `dataset` section will be passed to your datamodule class and can be retrieved through 'hparams' dictionary (see example with [mnist_digits_datamodule](project/data_modules/mnist_digits_datamodule/datamodule.py)).