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

WandbLogger does not log test results #1220

Closed
chris-clem opened this issue Mar 24, 2020 · 6 comments · Fixed by #1193
Closed

WandbLogger does not log test results #1220

chris-clem opened this issue Mar 24, 2020 · 6 comments · Fixed by #1193
Labels
bug Something isn't working help wanted Open to be worked on logger Related to the Loggers

Comments

@chris-clem
Copy link

🐛 Bug

The WandbLogger does not log test results when testing happens right after training.

To Reproduce

When running the MNIST example with the WandbLogger like in the following snippet, the test results do not get logged to wandb because it syncs before testing starts:

Code sample

    ...
    trainer = pl.Trainer(logger=WandbLogger(...))
    trainer.fit(model)
    trainer.test()

Expected behavior

WandbLogger should also log the test results by default like TensorBoardLogger or TestTubeLogger to be a real alternative for the other loggers.

Environment

PyTorch version: 1.4.0
Is debug build: No
CUDA used to build PyTorch: 10.1

OS: Ubuntu 18.04.4 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.10.2

Python version: 3.7
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA

Versions of relevant libraries:
[conda] pytorch-lightning         0.7.1                    pypi_0    pypi
[conda] torch                     1.4.0                    pypi_0    pypi
[conda] torchvision               0.5.0                    pypi_0    pypi

@chris-clem chris-clem added bug Something isn't working help wanted Open to be worked on labels Mar 24, 2020
@Borda
Copy link
Member

Borda commented Mar 25, 2020

@borisdayma @colehurwitz @calclavia pls ^^

@borisdayma
Copy link
Contributor

@Borda I think it's due to the finalize method closing the run with wandb.join.

I'm not completely familiar with the typical use case but a possible solution would be to remove it from the callback.

@borisdayma
Copy link
Contributor

@chris-clem can you confirm that this proposed fix solves the issue?

If so then related PR should fix it.

@Borda
Copy link
Member

Borda commented Mar 25, 2020

also discussed in #1116 and a fix in #1193
@borisdayma @chris-clem could you pls review it

@Borda Borda linked a pull request Mar 25, 2020 that will close this issue
5 tasks
@borisdayma
Copy link
Contributor

The PR looks good to me!

@chris-clem
Copy link
Author

The fix works, thanks!

@Borda Borda added the logger Related to the Loggers label Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Open to be worked on logger Related to the Loggers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants