File size: 386 Bytes
c1b80c0
 
 
 
 
 
 
 
 
 
c6d02ea
c1b80c0
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pytorch_lightning as pl
import hydra
from omegaconf import DictConfig


@hydra.main(version_base=None, config_path="../cfg", config_name="config.yaml")
def main(cfg: DictConfig):
    # Apply seed for reproducibility
    if cfg.seed:
        pl.seed_everything(cfg.seed)
    _ = hydra.utils.instantiate(cfg.datamodule, _convert_="partial")


if __name__ == "__main__":
    main()