summaryrefslogtreecommitdiff
path: root/models/rgb_part_net.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-02-18 18:34:06 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-02-18 18:34:06 +0800
commit84a3d5991f2f7272d1be54ad6cfe6ce695f915a0 (patch)
treef0ab13ef2118e773f10d77e9926012569e6611ec /models/rgb_part_net.py
parente6703e1fff20975bada71ce12644e0c8e58c1922 (diff)
Implement adjustable input size and change some default configs
Diffstat (limited to 'models/rgb_part_net.py')
-rw-r--r--models/rgb_part_net.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/rgb_part_net.py b/models/rgb_part_net.py
index c3954bc..67acac3 100644
--- a/models/rgb_part_net.py
+++ b/models/rgb_part_net.py
@@ -11,6 +11,7 @@ class RGBPartNet(nn.Module):
def __init__(
self,
ae_in_channels: int = 3,
+ 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,
@@ -33,7 +34,7 @@ class RGBPartNet(nn.Module):
self.image_log_on = image_log_on
self.ae = AutoEncoder(
- ae_in_channels, ae_feature_channels, f_a_c_p_dims
+ ae_in_channels, ae_in_size, ae_feature_channels, f_a_c_p_dims
)
self.pn = PartNet(
ae_in_channels, fpfe_feature_channels, fpfe_kernel_sizes,