Adaptive Equalizer via self-supervised learning.
python src/main.py fit -c configs/config.yaml -n debug-fit-run -v debug-versionIf using wandb for logging, change "project" key in cli_module/rich_wandb.py
If you want to access log directory in your LightningModule, you can access as follows.
log_root_dir = self.logger.log_dir or self.logger.save_dirOne can save model checkpoints using Lightning Callbacks.
It contains model weight, and other state_dict for resuming train.
There are several ways to save ckpt files at either local or cloud.
-
Just leave everything in default, ckpt files will be saved locally. (at
logs/${name}/${version}/fit/checkpoints) -
If you want to save ckpt files as
wandbArtifacts, add the following config. (The ckpt files will be saved locally too.)
trainer:
logger:
init_args:
log_model: all- If you want to save ckpt files in cloud rather than local, you can change the save path by adding the config. (The ckpt files will NOT be saved locally.)
model_ckpt:
dirpath: gs://bucket_name/path/for/checkpointsYou can set async checkpoint saving by providing config as follows.
trainer:
plugins:
- AsyncCheckpointIOJust add BatchSizeFinder callbacks in the config
trainer:
callbacks:
- class_path: BatchSizeFinderOr add them in the cmdline.
python src/main.py fit -c configs/config.yaml --trainer.callbacks+=BatchSizeFinderpython src/tune.py -c configs/config.yamlNOTE: No subcommand in cmdline
Basically all logs are stored in logs/${name}/${version}/${job_type} where ${name} and ${version} are configured in yaml file or cmdline.
{job_type} can be one of fit, test, validate, etc.
python src/main.py test -c configs/config.yaml -n debug-test-run -v debug-version --ckpt_path YOUR_CKPT_PATH