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

vdl可以打开 却无法读取里面的数据是为什么 #1231

Open
qqwantu opened this issue Mar 10, 2023 · 6 comments
Open

vdl可以打开 却无法读取里面的数据是为什么 #1231

qqwantu opened this issue Mar 10, 2023 · 6 comments

Comments

@qqwantu
Copy link

qqwantu commented Mar 10, 2023

Traceback (most recent call last):
File "H:/PaddleSlim/vdl.py", line 5, in
data = reader.get_data('scalar', 'train/loss')
File "E:\anaconda\envs\paddle\lib\site-packages\visualdl\reader\reader.py", line 112, in get_data
return self._log_data[component][tag]
AttributeError: 'LogReader' object has no attribute '_log_data'

@rainyfly
Copy link
Collaborator

你好,可以贴一下你的python code么,LogReader里的文件接口有两组,一组是负责读logdir整个目录的,一组是负责读单个file的,即LogReader里指定file_path读单个文件。你这个接口貌似是读单个文件的?

@qqwantu
Copy link
Author

qqwantu commented Mar 10, 2023

image
image
我直接复制示例的

@qqwantu
Copy link
Author

qqwantu commented Mar 10, 2023

image

@rainyfly
Copy link
Collaborator

你的VDL版本是哪个呀,要不升级一下VDL试试。

@andyz168
Copy link

我也遇到这个问题

@rainyfly
Copy link
Collaborator

我也遇到这个问题

哪个版本的VDL

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

3 participants