-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tensorboard metrics not loaded properly #6907
Comments
Are the metrics showing up in the Time Series or Scalar tabs? Did you try selecting the "show metrics" check boxes? |
The scalars associated with the metrics are loaded correctly in both the TIME SERIES and SCALARS tabs. The only problem is that no metrics are displayed in the HPARAMS tab. When I select the "show metrics" checkboxes, a completely empty chart pops up. |
Wow that is strange! I do not see why that would happen and I cannot seem to reproduce it. Is this happening with other logs or just this one? |
Yes, it's weird. It doesn't seem to be a problem only with these specific logs. I've also used other scalars as metrics, but that didn't change the result. It is perhaps also noteworthy that I encountered exactly the same problem with a completely different implementation, namely the code from the Official Guide to Hyperparameter Optimization with tensorboard (this is a tensorflow implementation). The scalars were displayed correctly in the TIME SERIES and SCALARS tab, but the column of the corresponding metric „Accuracy“ in the HPARAMS tab remained empty. Related code (from the official guide):
|
Is it possible for you to send me your log files? |
Sure. But since I'm currently on vacation, I can't do this until the beginning of next week. |
Hey James, the tensorboard versions were indeed the deciding factor.
installed. Downgrading to
solved the problem and all metrics were displayed correctly. Thank you very much for your help!
and
However, the problem still exists for these. |
Thanks! Had the same issue here. |
Can this issue be re-opened? The issue still persists with the current version 2.18.0 |
I have the problem that in Tensorboard the metrics are not loaded correctly (the column is always empty), although the scalars are saved correctly. I am working with torch.utils.tensorboard.
Relevant code:
writer = SummaryWriter(log_dir=f'./logs/studies/{study_name}/')
In the training loop:
writer.add_scalar(tag='validation/min_loss', scalar_value=min_val_loss, global_step=trial.number)
Add the hyperparameter to the summary writer (args_dict is a dictionary with all hyperparameters)
writer.add_hparams(hparam_dict=args_dict, metric_dict={'validation/min_loss': min_val_loss}, run_name=run_name)
writer.close()
The text was updated successfully, but these errors were encountered: