summaryrefslogtreecommitdiff
path: root/models/rgb_part_net.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-03-22 19:32:16 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-03-22 19:32:16 +0800
commitb6e5972b64cc61fc967cf3d098fc629d781adce4 (patch)
tree54093467a15bb20dbf3d6b479a8172b13d60e193 /models/rgb_part_net.py
parent38555617816cfaef6f330e7fc90f3cfa65d692fb (diff)
Add embedding visualization and validate on testing set
Diffstat (limited to 'models/rgb_part_net.py')
-rw-r--r--models/rgb_part_net.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/rgb_part_net.py b/models/rgb_part_net.py
index c136040..4a82da3 100644
--- a/models/rgb_part_net.py
+++ b/models/rgb_part_net.py
@@ -57,7 +57,7 @@ class RGBPartNet(nn.Module):
if self.training:
return x_c, x_p, ae_losses, images
else:
- return torch.cat((x_c.view(-1), x_p.view(-1)))
+ return x_c, x_p
def _disentangle(self, x_c1_t2, x_c2_t2=None):
n, t, c, h, w = x_c1_t2.size()