Skip to content
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

how use tensorboard to show train log file #11701

Open
yfq512 opened this issue May 10, 2024 · 2 comments
Open

how use tensorboard to show train log file #11701

yfq512 opened this issue May 10, 2024 · 2 comments
Assignees

Comments

@yfq512
Copy link

yfq512 commented May 10, 2024

I'am training faster_rcnn model. and I get some log file. now, how use tensorboard to show train log file?
train log file tree

work_dirs/mepu_detect_data_merg_0510/
├── 20240510_030714
│   ├── 20240510_030714.log
│   └── vis_data
│       ├── 20240510_030714.json
│       ├── config.py
│       └── scalars.json
├── epoch_1.pth
├── epoch_2.pth
├── epoch_3.pth
├── last_checkpoint
└── mepu_det_data_0510.py

run tensorboard:

tensorboard --logdir=./work_dirs/mepu_detect_data_merg_0510/20240510_030714/20240510_030714.log --port 8000 --bind_all

but, tensorboard show "No dashboards are active for the current data set."

can you help me?

@DarkFlameSword
Copy link

DarkFlameSword commented May 22, 2024

I'am training faster_rcnn model. and I get some log file. now, how use tensorboard to show train log file? train log file tree

work_dirs/mepu_detect_data_merg_0510/
├── 20240510_030714
│   ├── 20240510_030714.log
│   └── vis_data
│       ├── 20240510_030714.json
│       ├── config.py
│       └── scalars.json
├── epoch_1.pth
├── epoch_2.pth
├── epoch_3.pth
├── last_checkpoint
└── mepu_det_data_0510.py

run tensorboard:

tensorboard --logdir=./work_dirs/mepu_detect_data_merg_0510/20240510_030714/20240510_030714.log --port 8000 --bind_all

but, tensorboard show "No dashboards are active for the current data set."

can you help me?

in fact, here is no tf log for tensorboard as you showed. I also encounter the same question, according to some info from websites, they say these codes should be added into configurationn
log_config = dict( interval=5, # 日志间隔 hooks=[ dict(type='TextLoggerHook'), # 日志钩子 dict(type='TensorboardLoggerHook') # TensorBoard 日志钩子 ])
However, it does not work(no tf log either when training), so I want to know if the latest edtion changes the way to open tensorboard

@VadimShabashov
Copy link

VadimShabashov commented May 31, 2024

However, it does not work

Indeed, it seems the old way doesn't work anymore.
Here you can find a note about that:
https://github.com/open-mmlab/mmdetection/blob/cfd5d3a985b0249de009b67d04f37263e11cdf3d/docs/en/migration/config_migration.md#logging-configuration

A new approach is setting vis_backends=[dict(type='TensorboardVisBackend')], as was also mentioned in this comment:
#10521 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants