Add custom validation metric to progress bar

Hi. I have calculated my val_acc metric in validation_epoch_end method. I want to add this to the main progress bar once its calculated. It does not get added to the progress bar when I return this value from this function. I also tried self.trainer.progress_bar_dict['val_acc'] = val_acc in the same function but it still does not work. Please help.

have you try this? Set the prog_bar to True.

def validation_epoch_end(self, yourOutput):
   self.log('your_metric', your_metric, prog_bar=True)

it could be also validation run too fast, can slow it down with progress_bar_refresh_rate in your Trainer().