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 can i read tensorboard by python ? #681

Open
Mr-bor opened this issue Jan 10, 2023 · 2 comments
Open

How can i read tensorboard by python ? #681

Mr-bor opened this issue Jan 10, 2023 · 2 comments

Comments

@Mr-bor
Copy link

Mr-bor commented Jan 10, 2023

hi,
i find event_accumulator.EventAccumulator() can help me read a tensorboard, and i know how to read scalar, but how can i read Tensors/text ? i use writer.add_text('A',B) in my pytorch code, and i want to read A and B only by python, because tensoard is very slow to load my item. And i find A/B are in Tensors.
i think it is a easy thing, but i do not know how to do it.
Thanks!

@lanpa
Copy link
Owner

lanpa commented Jan 25, 2023

yes, that's easy. There's example to read the images: https://github.com/lanpa/tensorboard-dumper/blob/master/dump.py

@Mr-bor
Copy link
Author

Mr-bor commented Feb 20, 2023

oh,i get it, and can you tell me how to get string_val and translate it?
Thanks!

[TensorEvent(wall_time=1673285639.0386734, step=0, tensor_proto=dtype: DT_STRING
tensor_shape {
dim {
size: 1
}
}
string_val: "\345\212\240\345\205\245zhedang5\357\274\214\345\260\206flag\346\224\271\344\270\2720~2"
)]

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

2 participants