From 92fc1c7ed2f9f64552be8f71d9b8ab0d5a0a88d4 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 30 Jul 2021 00:02:05 +0200 Subject: Black formatting --- text_recognizer/models/base.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'text_recognizer/models') diff --git a/text_recognizer/models/base.py b/text_recognizer/models/base.py index 3b83056..3e02261 100644 --- a/text_recognizer/models/base.py +++ b/text_recognizer/models/base.py @@ -31,9 +31,15 @@ class BaseLitModel(LightningModule): loss_fn: Type[nn.Module] = attr.ib(init=False) - train_acc: torchmetrics.Accuracy = attr.ib(init=False, default=torchmetrics.Accuracy()) - val_acc: torchmetrics.Accuracy = attr.ib(init=False, default=torchmetrics.Accuracy()) - test_acc: torchmetrics.Accuracy = attr.ib(init=False, default=torchmetrics.Accuracy()) + train_acc: torchmetrics.Accuracy = attr.ib( + init=False, default=torchmetrics.Accuracy() + ) + val_acc: torchmetrics.Accuracy = attr.ib( + init=False, default=torchmetrics.Accuracy() + ) + test_acc: torchmetrics.Accuracy = attr.ib( + init=False, default=torchmetrics.Accuracy() + ) @loss_fn.default def configure_criterion(self) -> Type[nn.Module]: -- cgit v1.2.3-70-g09d2