blob: 26d5aeb2fbec937b1646040a70d537cc8ccbbfe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
"""Loads config with hydra and runs experiment."""
import hydra
from omegaconf import DictConfig
@hydra.main(config_path="conf", config_name="config")
def main(config: DictConfig) -> None:
"""Loads config with hydra and runs the experiment."""
import utils
from run import run
utils.extras(config)
if config.get("print_config"):
utils.print_config(config)
return run(config)
if __name__ == "__main__":
main()
|