summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/auto_encoder.py6
-rw-r--r--models/model.py2
-rw-r--r--models/rgb_part_net.py2
3 files changed, 5 insertions, 5 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)
):
diff --git a/models/model.py b/models/model.py
index 3d619fe..75f243c 100644
--- a/models/model.py
+++ b/models/model.py
@@ -55,7 +55,7 @@ class Model:
self.is_train: bool = True
self.in_channels: int = 3
- self.in_size: tuple[int, int] = (64, 48)
+ self.in_size: Tuple[int, int] = (64, 48)
self.pr: Optional[int] = None
self.k: Optional[int] = None
diff --git a/models/rgb_part_net.py b/models/rgb_part_net.py
index 80b3e17..538ca53 100644
--- a/models/rgb_part_net.py
+++ b/models/rgb_part_net.py
@@ -13,7 +13,7 @@ class RGBPartNet(nn.Module):
def __init__(
self,
ae_in_channels: int = 3,
- ae_in_size: tuple[int, int] = (64, 48),
+ ae_in_size: Tuple[int, int] = (64, 48),
ae_feature_channels: int = 64,
f_a_c_p_dims: Tuple[int, int, int] = (128, 128, 64),
hpm_use_1x1conv: bool = False,