diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-14 21:08:14 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-14 21:08:14 +0800 |
commit | f953000c5b9490c040b68cbc233518c756ac00ab (patch) | |
tree | 085742fa2a52524bb29529d9d254ac80735ada66 /models | |
parent | c97bed6721fc1a7186719fef0c340d6d03057891 (diff) | |
parent | 17ae5e529475a7e47fdde0ce69982b5dfe34f2eb (diff) |
Merge branch 'python3.8' into python3.7
Diffstat (limited to 'models')
-rw-r--r-- | models/rgb_part_net.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/rgb_part_net.py b/models/rgb_part_net.py index 6e72e38..fba3485 100644 --- a/models/rgb_part_net.py +++ b/models/rgb_part_net.py @@ -59,7 +59,7 @@ class RGBPartNet(nn.Module): if self.training: return x_c, x_p, ae_losses, images else: - return torch.cat((x_c, x_p)).unsqueeze(1).view(-1) + return torch.cat((x_c.view(-1), x_p.view(-1))) def _disentangle(self, x_c1_t2, x_c2_t2=None): n, t, c, h, w = x_c1_t2.size() |