diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-02-18 18:34:06 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-02-18 18:34:06 +0800 |
commit | 84a3d5991f2f7272d1be54ad6cfe6ce695f915a0 (patch) | |
tree | f0ab13ef2118e773f10d77e9926012569e6611ec /models/rgb_part_net.py | |
parent | e6703e1fff20975bada71ce12644e0c8e58c1922 (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.py | 3 |
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, |