Skip to content
Snippets Groups Projects
Commit 2802499a authored by Alexandre Chapin's avatar Alexandre Chapin :race_car:
Browse files

Fix problem when unpacking data

parent 74ec94a7
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@ class LitSlotAttentionAutoEncoder(pl.LightningModule):
# Get the prediction of the model and compute the loss.
preds = self.one_step(input_image)
recon_combined, recons, masks, slots = preds
recon_combined, recons, masks, slots, _ = preds
input_image = input_image.permute(0, 2, 3, 1)
loss_value = criterion(recon_combined, input_image)
del recons, masks, slots # Unused.
......@@ -179,7 +179,7 @@ class LitSlotAttentionAutoEncoder(pl.LightningModule):
# Get the prediction of the model and compute the loss.
preds = self.one_step(input_image)
recon_combined, recons, masks, slots = preds
recon_combined, recons, masks, slots, _ = preds
input_image = input_image.permute(0, 2, 3, 1)
loss_value = criterion(recon_combined, input_image)
del recons, masks, slots # Unused.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment