1 parent
52d6dc99c7
commit
1964eb4dbf
1 file changed
+4
-4
@@ -1,19 +1,19 @@
|
||||
import dotenv
|
||||
import hydra
|
||||
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")
|
||||
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
|
||||
import dotenv
|
||||
from src.train import train
|
||||
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:
|
||||
# - disabling python warnings
|
||||
# - disabling lightning logs
|
||||
|
||||
Reference in new issue
Block a user