tensorflow / tensorflow/tensorboard

Bug Report: Tensorboard can not load all `Hyperparameters` keys, if call `writer.add_hparams` with different `hparam_dict` parameters.

Open
#5,596 7 comments 1 reaction 1 assignee View on GitHub

@yatbear is already working on this.

Since Mar 4, 2022.

stat:awaiting response type:bug
Dominant language
TypeScript
Stars
7.2k
Forks
1.7k
Avg merge
4d 22h
Merged PRs (30d)
1

Description

Test code

from torch.utils.tensorboard import SummaryWriter

from conf import WRITER_PATH

writer = SummaryWriter(str(WRITER_PATH / "test1"))
with writer:
    writer.add_hparams(hparam_dict={"height": 0}, metric_dict={"iou": 0.5})
    writer.flush()

writer = SummaryWriter(str(WRITER_PATH / "test2"))
with writer:
    writer.add_hparams(hparam_dict={"weight": 0}, metric_dict={"iou": 0.3})
    writer.flush()

response

  • We can see all hparams from response with height and weight
Json response from /data/plugin/hparams/session_groups ```json { "sessionGroups": [ { "name": "test1/1646371009.676503", "hparams": { "height": 0.0 }, "metricValues": [ { "name": { "tag": "iou", "group": "" }, "value": 0.5, "wallTimeSecs": 1646371009.6773322, "trainingStep": 0 } ], "sessions": [ { "name": "test1/1646371009.676503", "status": "STATUS_SUCCESS", "metricValues": [ { "name": { "tag": "iou", "group": "" }, "value": 0.5, "wallTimeSecs": 1646371009.6773322, "trainingStep": 0 } ], "startTimeSecs": 0.0, "endTimeSecs": 0.0, "modelUri": "", "monitorUrl": "" } ], "monitorUrl": "" }, { "name": "test2/1646371009.6787846", "hparams": { "weight": 0.0 }, "metricValues": [ { "name": { "tag": "iou", "group": "" }, "value": 0.30000001192092896, "wallTimeSecs": 1646371009.679453, "trainingStep": 0 } ], "sessions": [ { "name": "test2/1646371009.6787846", "status": "STATUS_SUCCESS", "metricValues": [ { "name": { "tag": "iou", "group": "" }, "value": 0.30000001192092896, "wallTimeSecs": 1646371009.679453, "trainingStep": 0 } ], "startTimeSecs": 0.0, "endTimeSecs": 0.0, "modelUri": "", "monitorUrl": "" } ], "monitorUrl": "" } ], "totalSize": 2 } ```

Page

Here the weight ONLY

image

Version

> tensorboard --version                                                                                                                                           (py38) 
TensorFlow installation not found - running with reduced feature set.
2.8.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.