Skip to content

Conversation

Zeyi-Lin
Copy link
Member

@Zeyi-Lin Zeyi-Lin commented May 16, 2024

Description

支持将TFEvent文件转换为SwanLab实验,目前采用的办法是直接init创建项目后Log的方式。
支持的类型:

  • scalar: 标量
  • image: 图像
  • audio: 音频
  • text: 文本

使用方式1-py脚本:

from swanlab.converter import TFBConverter

tfb_converter = TFBConverter(convert_dir="...")  # 这里也可以填一些project等参数
tfb_converter.run()

使用方式2-CLI:

swanlab convert [CONVERT_LOGDIR] -t tensorboard
  • 可以不填-t,默认为tensorboard

测试文件夹:
logs.zip

效果:

image

Closes: #437

@Zeyi-Lin Zeyi-Lin requested a review from SAKURA-CAT May 16, 2024 06:58
@Zeyi-Lin Zeyi-Lin self-assigned this May 16, 2024
@Zeyi-Lin Zeyi-Lin added this to the v0.3.2 milestone May 16, 2024
@Zeyi-Lin Zeyi-Lin added the 💪 enhancement New feature or request label May 16, 2024
@SAKURA-CAT SAKURA-CAT merged commit e630dd0 into main May 16, 2024
@SAKURA-CAT SAKURA-CAT deleted the feat/converter-tensorboard branch May 16, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💪 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REQUEST] 转换Tensorboard日志文件到SwanLab

2 participants