Hi!
My progress bar updates in place nicely during training steps, but then during validation something weird happens and it starts printing out each step line-by-line:
The train/val step code is pretty minimal:
def training_step(self, batch, batch_idx):
img, target = batch
heatmap = self(img)
loss = (1 - F.cosine_similarity(target, heatmap)).mean()
self.log('train_loss', loss)
return {'loss': loss}
def validation_step(self, batch, batch_idx):
img, target = batch
heatmap = self(img)
loss = (1 - F.cosine_similarity(target, heatmap)).mean()
self.log('val_loss', loss)
return {'val_loss': loss}
Would be grateful if someone pointed out what Iām doing wrong, thanks!