* issue #109

* Update run.py
This commit is contained in:
Sienna authored and GitHub committed 2021-03-28 12:13:16 +02:00
1 parent 52d6dc99c7
commit 1964eb4dbf
1 file changed
+4 -4
+4 -4
View File
@@ -1,19 +1,19 @@
import dotenv
import hydra import hydra
from omegaconf import DictConfig from omegaconf import DictConfig
# load environment variables from `.env` file if it exists
dotenv.load_dotenv(override=True)
@hydra.main(config_path="configs/", config_name="config.yaml") @hydra.main(config_path="configs/", config_name="config.yaml")
def main(config: DictConfig): def main(config: DictConfig):
# Imports should be nested inside @hydra.main to optimize tab completion # Imports should be nested inside @hydra.main to optimize tab completion
# Read 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.train import train
from src.utils import template_utils from src.utils import template_utils
# load environment variables from `.env` file if it exists
dotenv.load_dotenv(dotenv_path=".env", override=True)
# A couple of optional utilities: # A couple of optional utilities:
# - disabling python warnings # - disabling python warnings
# - disabling lightning logs # - disabling lightning logs