summaryrefslogtreecommitdiff
path: root/models/rgb_part_net.py
diff options
context:
space:
mode:
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 2af990e..538ca53 100644
--- a/models/rgb_part_net.py
+++ b/models/rgb_part_net.py
@@ -86,7 +86,7 @@ class RGBPartNet(nn.Module):
pn_ba_trip = self.pn_ba_trip(
x[self.hpm_num_parts:], y[self.hpm_num_parts:]
)
- losses = torch.stack((*losses, hpm_ba_trip, pn_ba_trip))
+ losses = (*losses, hpm_ba_trip, pn_ba_trip)
return losses, images
else:
return x.unsqueeze(1).view(-1)