Dev (#107)
* refactor folder names * define python logger correctly * refactor rich printing method * specify model parameters explicitly * specify datamodule params explicitly * refactor * update readme
This commit is contained in:
1 parent
fca999f527
commit
381b5844ed
18 files changed
+133
-168
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import hydra
|
||||
from hydra.utils import log
|
||||
from omegaconf import DictConfig
|
||||
|
||||
|
||||
@@ -7,7 +6,7 @@ from omegaconf import DictConfig
|
||||
def main(config: DictConfig):
|
||||
|
||||
# Imports should be nested inside @hydra.main to optimize tab completion
|
||||
# Learn more here: https://github.com/facebookresearch/hydra/issues/934
|
||||
# Read more here: https://github.com/facebookresearch/hydra/issues/934
|
||||
import dotenv
|
||||
from src.train import train
|
||||
from src.utils import template_utils
|
||||
@@ -25,7 +24,6 @@ def main(config: DictConfig):
|
||||
|
||||
# Pretty print config using Rich library
|
||||
if config.get("print_config"):
|
||||
log.info(f"Pretty printing config with Rich! <{config.print_config=}>")
|
||||
template_utils.print_config(config, resolve=True)
|
||||
|
||||
# Train model
|
||||
|
||||
Reference in new issue
Block a user