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

tensorboard issue: acc and fps on valide set is somewhat wrong #192

Closed
jkfx opened this issue Apr 17, 2022 · 2 comments
Closed

tensorboard issue: acc and fps on valide set is somewhat wrong #192

jkfx opened this issue Apr 17, 2022 · 2 comments

Comments

@jkfx
Copy link

jkfx commented Apr 17, 2022

writer.add_scalars(metric_name, {mode: metric})

Is there need add writer.iteration += 1 and modifiy the writer.add_scalars(metric_name, {mode: metric_batch}, writer.iteration) as the orginal code is not pass in writer.iteration?

Beacause I find that the tensorboard generating figures in valid set have no valid acc and fps curve rather a single point.

image

@vcadillog
Copy link

Hi, I know this is old issue, but I found the solution to this, as you said it's not taking the writter iteration right, but it's because it's not adding it to the writer, so the line :
writer.add_scalars(metric_name, {mode: metric})
Change it for:
writer.add_scalars(metric_name, {mode: metric}, writer.iteration)
Hope it's not too late to help or if the devs can make this change.

@jkfx
Copy link
Author

jkfx commented Oct 28, 2022

Hi, I know this is old issue, but I found the solution to this, as you said it's not taking the writter iteration right, but it's because it's not adding it to the writer, so the line : writer.add_scalars(metric_name, {mode: metric}) Change it for: writer.add_scalars(metric_name, {mode: metric}, writer.iteration) Hope it's not too late to help or if the devs can make this change.

Thanks for reply! I have solved this solution ❤

@jkfx jkfx closed this as completed Oct 28, 2022
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