Dev (#136)
* comment improvements * add __init__.py * add disabling pin memory on fast dev run * rename template_utils.py to utils.py * improve README.md * add num_classes property to mnist datamodule * add sh to requirements.txt * bump package versions
This commit is contained in:
1 parent
d5da445e8d
commit
023d4bdecc
9 files changed
+27
-28
No files matched your search
@@ -13,7 +13,7 @@ def main(config: DictConfig):
|
||||
# Imports should be nested inside @hydra.main to optimize tab completion
|
||||
# Read more here: https://github.com/facebookresearch/hydra/issues/934
|
||||
from src.train import train
|
||||
from src.utils import template_utils
|
||||
from src.utils import utils
|
||||
|
||||
# A couple of optional utilities:
|
||||
# - disabling python warnings
|
||||
@@ -21,11 +21,11 @@ def main(config: DictConfig):
|
||||
# - forcing debug friendly configuration
|
||||
# - forcing multi-gpu friendly configuration
|
||||
# You can safely get rid of this line if you don't want those
|
||||
template_utils.extras(config)
|
||||
utils.extras(config)
|
||||
|
||||
# Pretty print config using Rich library
|
||||
if config.get("print_config"):
|
||||
template_utils.print_config(config, resolve=True)
|
||||
utils.print_config(config, resolve=True)
|
||||
|
||||
# Train model
|
||||
return train(config)
|
||||
|
||||
Reference in new issue
Block a user