From 72befa6d8cc4c7ecf698512a97424641ee81725a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 8 Jul 2021 22:26:15 +0200 Subject: Move callbacks to training folder, refactor --- training/run.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'training/run.py') diff --git a/training/run.py b/training/run.py index 31da666..695a298 100644 --- a/training/run.py +++ b/training/run.py @@ -2,14 +2,14 @@ from typing import List, Optional, Type import hydra -import loguru.logger as log +from loguru import logger as log from omegaconf import DictConfig from pytorch_lightning import ( Callback, LightningDataModule, LightningModule, - Trainer, seed_everything, + Trainer, ) from pytorch_lightning.loggers import LightningLoggerBase from torch import nn @@ -67,7 +67,7 @@ def run(config: DictConfig) -> Optional[float]: log.info("Training network...") trainer.fit(model, datamodule=datamodule) - if config.test: + if config.test:lua/cfg/themes/dark.lua log.info("Testing network...") trainer.test(model, datamodule=datamodule) -- cgit v1.2.3-70-g09d2