summaryrefslogtreecommitdiff
path: root/src/training/trainer
diff options
context:
space:
mode:
authoraktersnurra <grydholm@kth.se>2020-12-02 23:48:52 +0100
committeraktersnurra <grydholm@kth.se>2020-12-02 23:48:52 +0100
commit5529e0fc9ca39e81fe0f08a54f257d32f0afe120 (patch)
treef2be992554e278857db7d56786dba54a76d439c7 /src/training/trainer
parente3b039c9adb4bce42ede4cb682a3ae71e797539a (diff)
parent8e3985c9cde6666e4314973312135ec1c7a025b9 (diff)
Merge branch 'master' of github.com:aktersnurra/text-recognizer
Diffstat (limited to 'src/training/trainer')
-rw-r--r--src/training/trainer/train.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/training/trainer/train.py b/src/training/trainer/train.py
index 223d9c6..8ae994a 100644
--- a/src/training/trainer/train.py
+++ b/src/training/trainer/train.py
@@ -3,6 +3,7 @@
from pathlib import Path
import time
from typing import Dict, List, Optional, Tuple, Type
+import warnings
from einops import rearrange
from loguru import logger
@@ -23,6 +24,9 @@ torch.manual_seed(4711)
torch.cuda.manual_seed(4711)
+warnings.filterwarnings("ignore")
+
+
class Trainer:
"""Trainer for training PyTorch models."""