Error Parsing Hyper Parameters (`HPARAMS`) on Windows
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- python, typescript
调研方向
Start with tensorboard/plugins/hparams/metrics.py and inspect run_tag_from_session_and_metric, which the issue identifies as constructing the metric run path. Reproduce with the provided SummaryWriter.add_hparams example on Windows and check the HParams dashboard or JSON export. Done means the recorded metric values appear instead of null; an open pull request is already linked.
由索引模型根据 Issue 内容生成。
描述
Description
When viewing an experiment in TensorBoard’s HParams dashboard on Windows, the metric values are shown as null. Downloading the HParams data as JSON also returns null for the metrics.
The event files contain the expected scalar metrics, and the HParams session and experiment data are present. The issue appears to be in how the HParams plugin constructs the metric run path on Windows.
Steps to reproduce
Write HParams and numeric metrics with SummaryWriter.add_hparams:
from torch.utils.tensorboard import SummaryWriter
writer = SummaryWriter("logs/Model001")
writer.add_hparams(
{"activation": "ELU"},
{"train_loss": 0.16, "train_score": 0.95},
)
writer.close()
Launch TensorBoard on Windows and open the HParams dashboard.
View the experiment’s metrics or download the HParams data as JSON.
Expected behavior
The HParams dashboard and JSON export show the recorded metric values, such as 0.16 and 0.95.
Actual behavior
The metrics appear as null, despite being present in the event files.
Environment
OS: Windows
TensorBoard: 2.21.0
Possible cause
In tensorboard/plugins/hparams/metrics.py, run_tag_from_session_and_metric joins the session name and metric group, then only removes a trailing forward slash (/). On Windows, os.path.join(session_name, "") can produce a trailing backslash (), which is not removed. The resulting run path may not match the actual run name, causing the metric lookup to fail.
- 主要语言
- TypeScript
- 星标
- 7.2k
- 派生
- 1.7k
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 3
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tensorflow/tensorboard 的其他 Issue
-
node_repositories in WORKSPACE missing linux_ppc64le and linux_s390x entries for Node.js 18.20.8未关闭
难度 1/5 1 小时以内 新手友好度 92/100
tensorflow/tensorboard#7140 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 10/100
tensorflow/tensorboard#7159 ·
维护者通常 1 天内回复
-
install未关闭
难度 5/5 一周以上 新手友好度 10/100
tensorflow/tensorboard#7158 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
tensorflow/tensorboard#7153 ·
维护者通常 1 天内回复
-
Backport workflow-hardening fix (unpinned-uses) to 3 release branches可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 3/5 1-2 天 新手友好度 68/100
tensorflow/tensorboard#7137 · 1 条评论 ·
维护者通常 1 天内回复
查看 tensorflow/tensorboard 的全部 Issue
相似的 Issue
-
Bug Tests
难度 2/5 1-3 小时 新手友好度 78/100
JSPrismarine/JSPrismarine#3384 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
zingolabs/zingo-mobile#1951 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
Automattic/data-liberation-agent#2175 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
xdelmo/Portfolio-minimal#613 ·
维护者通常 1 天内回复
-
backend documentation low-priority Stellar Wave
难度 2/5 1-3 小时 新手友好度 68/100
Savitura/Savitools#611 · 1 条评论 ·
维护者通常 6 天内回复