Skip to content

Commit

Permalink
[fix] removing the loss_function stuff and replacing entirely with ev…
Browse files Browse the repository at this point in the history
…al_step
  • Loading branch information
ctr26 committed Aug 15, 2024
1 parent f67b815 commit fec2ee3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bioimage_embed/shapes/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def batch_to_tensor(self, batch):

return output

def loss_function(self, model_output, *args, **kwargs):
def eval_step(self, batch, batch_idx):
# model_output = super().eval_step(batch, batch_idx)
model_output = self.predict_step(batch, batch_idx)
loss_ops = lf.DistanceMatrixLoss(model_output.recon_x, norm=False)

shape_loss = torch.sum(
Expand Down

0 comments on commit fec2ee3

Please sign in to comment.