Skip to content

Commit

Permalink
[bug] needs to be super() for eval
Browse files Browse the repository at this point in the history
  • Loading branch information
ctr26 committed Aug 15, 2024
1 parent fec2ee3 commit 35820cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bioimage_embed/shapes/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def batch_to_tensor(self, batch):
return output

def eval_step(self, batch, batch_idx):
# model_output = super().eval_step(batch, batch_idx)
model_output = self.predict_step(batch, batch_idx)
# Needs to be super because eval_step is overwritten in Supervised
model_output = super().eval_step(batch, batch_idx)
loss_ops = lf.DistanceMatrixLoss(model_output.recon_x, norm=False)

shape_loss = torch.sum(
Expand Down

0 comments on commit 35820cf

Please sign in to comment.