summaryrefslogtreecommitdiff
path: root/models/auto_encoder.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-02-19 10:17:43 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-02-19 10:17:43 +0800
commit5b3a324df1ee4c3789667f0f98bdfa5187393680 (patch)
treeedd304cc45304947e9e20042e95335e2af350f12 /models/auto_encoder.py
parent8012fce3e595aad31f4a52dc316b46e558234dff (diff)
parent6b3b281bb91f9550969322e027c15f348750c726 (diff)
Merge branch 'python3.8' into data_parallel_py3.8
Diffstat (limited to 'models/auto_encoder.py')
-rw-r--r--models/auto_encoder.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/auto_encoder.py b/models/auto_encoder.py
index c6bc52f..e17caed 100644
--- a/models/auto_encoder.py
+++ b/models/auto_encoder.py
@@ -13,7 +13,7 @@ class Encoder(nn.Module):
def __init__(
self,
in_channels: int = 3,
- frame_size: tuple[int, int] = (64, 48),
+ frame_size: Tuple[int, int] = (64, 48),
feature_channels: int = 64,
output_dims: Tuple[int, int, int] = (128, 128, 64)
):
@@ -78,7 +78,7 @@ class Decoder(nn.Module):
self,
input_dims: Tuple[int, int, int] = (128, 128, 64),
feature_channels: int = 64,
- feature_size: tuple[int, int] = (4, 3),
+ feature_size: Tuple[int, int] = (4, 3),
out_channels: int = 3,
):
super().__init__()
@@ -127,7 +127,7 @@ class AutoEncoder(nn.Module):
def __init__(
self,
channels: int = 3,
- frame_size: tuple[int, int] = (64, 48),
+ frame_size: Tuple[int, int] = (64, 48),
feature_channels: int = 64,
embedding_dims: Tuple[int, int, int] = (128, 128, 64)
):