| 28 | |
| 29 | |
| 30 | def check_config(cfg): |
| 31 | if cfg.get("auto_requeue", False): |
| 32 | raise NotImplementedError("Auto-requeuing not working yet!") |
| 33 | if exists(cfg.get("resume_checkpoint", None)) and exists(cfg.get("load_weights", None)): |
| 34 | raise ValueError("Can't resume checkpoint and load weights at the same time.") |
| 35 | if "experiment" in cfg: |
| 36 | raise ValueError("Experiment config not merged successfully!") |
| 37 | if cfg.use_wandb and cfg.use_wandb_offline: |
| 38 | raise ValueError("Decide either for Online and offline wandb, not both.") |
| 39 | |
| 40 | |
| 41 | @hydra.main(config_path="configs", config_name="config", version_base=None) |