Logs not syncing after switching from tensorboardx to torch.utils.tensorboard
See original GitHub issueMetrics for my run are not showing up: https://app.wandb.ai/yaroslavvb/test-graphs_test/runs/lbuht9lu?workspace=user-yaroslavvb
Train Epoch: 100 [44928/60000 (75%)] Loss: 7.943522, Accuracy: 0/44928 (0.00%), Elapsed Time: 225.7s
Train Epoch: 100 [51328/60000 (86%)] Loss: 7.655457, Accuracy: 0/51328 (0.00%), Elapsed Time: 225.9s
Train Epoch: 100 [57728/60000 (96%)] Loss: 6.832315, Accuracy: 0/57728 (0.00%), Elapsed Time: 226.1s
wandb: Waiting for W&B process to finish, PID 98062
wandb: Program ended successfully.
wandb: Syncing files in wandb/run-20190821_231347-lbuht9lu:
wandb: upstream_diff_692e4cc15b4b6acd32f627215194be23445e9d69.patch
wandb: plus 7 W&B file(s) and 0 media file(s)
wandb:
wandb: Synced result: https://app.wandb.ai/yaroslavvb/test-graphs_test/runs/lbuht9lu
Process finished with exit code 0
Debug log – debug.log
My current work-around is to use local tensorboard to visualize the run, it looks something like this:
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Logs not syncing after switching from tensorboardx to torch ...
My best guess as to what's happening is we're not patching tensorboard properly. If this was the case you should see the following...
Read more >Can not get pytorch working with tensorboard - Stack Overflow
The error log says, among other things,. ImportError: TensorBoard logging requires TensorBoard with Python summary writer installed.
Read more >Pytorch sync_tensorboard help - W&B Help - WandB community
I'm having some issues getting W&B to sync with Tensorboard in ... this to work with either torch.utils.tensorboard or tensorboardX and with ...
Read more >tensorboardX SummaryWriter not working when using gpu
In the tensorboard webpage, I got 'No scalar data was found'. When I terminate the training, the event becomes 100K and I can...
Read more >A Complete Guide to Using TensorBoard with PyTorch
from torch.utils.tensorboard import SummaryWriter ... Moving the orange dot along the graph will give us a log of the respective ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have experienced the same problem (using
from torch.utils.tensorboard import SummaryWriter
) and solved it by first initializing wandb and only then initializing the tensorboard writer. There was no need for manual patching before wandb init.I tried reproducing the problem with the following code snippet:
Somehow
wandb
is unable to patch the tensorboard to thelogdir
I suggest here.On the other hand I tried modifying the code and used
torch.utils.tensorboard.SummaryWriter()
This worked fine for me. My best guesses would be some complication with the
tensorboardX
integration.