MCPcopy Index your code
hub / github.com/CompVis/diff2flow / check_config

Function check_config

train.py:30–38  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

28
29
30def 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)

Callers 1

mainFunction · 0.85

Calls 1

existsFunction · 0.90

Tested by

no test coverage detected