summaryrefslogtreecommitdiff
path: root/text_recognizer/data/base_dataset.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-08 08:39:32 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-08 08:39:32 +0200
commit90090f4b66284ce616ea475dfb04e2ce0e4fdf64 (patch)
tree9d26d4d453f031e8409403ca9e9193abc478b6a6 /text_recognizer/data/base_dataset.py
parent38dc6ca3b787bcdb54d43ac5c076e08af25d44b2 (diff)
WIP mappings
Diffstat (limited to 'text_recognizer/data/base_dataset.py')
-rw-r--r--text_recognizer/data/base_dataset.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/text_recognizer/data/base_dataset.py b/text_recognizer/data/base_dataset.py
index 675683a..4ceb818 100644
--- a/text_recognizer/data/base_dataset.py
+++ b/text_recognizer/data/base_dataset.py
@@ -32,13 +32,6 @@ class BaseDataset(Dataset):
self.targets = targets
self.transform = transform
self.target_transform = target_transform
-
- def __attrs_pre_init__(self) -> None:
- """Pre init constructor."""
- super().__init__()
-
- def __attrs_post_init__(self) -> None:
- """Post init constructor."""
if len(self.data) != len(self.targets):
raise ValueError("Data and targets must be of equal length.")
self.transform = self._load_transform(self.transform)