question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

overrride files with wandb.save

See original GitHub issue

During training, we are saving a snapshot of the best model and upload the snapshot to wandb.


if best:
   saveSnapshot("./snapshot.onnx")
   wandb.save("./snapshot.onnx")

However, only the first generated snapshot is available on wandb. I assume that wandb checks if this file already exists and does not overwrite it.

Is there any option to enable overriding?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
gismo07commented, Oct 16, 2020

I’ve tested it with a simple txt file. It seems, that the content of the file is updated on wandb like expected, only the timestamp is not updated

1reaction
vanpeltcommented, Aug 27, 2021

@savvaki I would suggest either using Artifacts, or specifying wandb.save("filename", policy="now") to have it upload the file immediately. The default policy is “live” which will upload the file as the file size increases. The timestamps will currently always show the first timestamp that the file was created.

Read more comments on GitHub >

github_iconTop Results From Across the Web

overrride files with wandb.save · Issue #1372 - GitHub
I assume that wandb checks if this file already exists and does not overwrite it. Is there any option to enable overriding?
Read more >
wandb.save - Documentation - Weights & Biases
Ensure all files matching glob_str are synced to wandb with the policy specified. ... or end - live: upload the file as it...
Read more >
Environment Variables · GitBook
If you have run wandb init in the directory of your training script, it will create a directory named wandb and will save...
Read more >
How to stop logging locally but only save to wandb's servers ...
I assume there must be some file handle issue because wandb's logger is throwing me issues. So my questions: how do I have...
Read more >
wandb — PyTorch Lightning 1.8.5.post0 documentation
class pytorch_lightning.loggers.wandb. ... Save LightningModule parameters: ... "person"]) # using file path wandb_logger.log_image(key="samples", ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found