Questions tagged [wandb]

134 questions
2
votes
2 answers

Wandb automatically logged into the wrong user -- why?

I followed the usual instructions: pip install wandb wandb login but then it never asked me for the user and thus when I pasted my key into the terminal when asked it was there in the .netrc file but it was all wrong: (iit_term_synthesis)…
Charlie Parker
  • 5,884
  • 57
  • 198
  • 323
2
votes
2 answers

How do I log a confusion matrix into Wanddb?

I'm using pytorch lightning, and at the end of each epoch, I create a confusion matrix from torchmetrics.ConfusionMatrix (see code below). I would like to log this into Wandb, but the Wandb confusion matrix logger only accepts y_targets and…
Chris92
  • 31
  • 2
2
votes
1 answer

How does one save a plot in wandb with wandb.log?

I'm trying to save a plot with wandb.log. Their docs say to do: wandb.log({"chart": plt}) but this fails for me. I get two errors, 1st error (when I do NOT do plt.show() before trying to do wand.log): Traceback (most recent call last): File…
Charlie Parker
  • 5,884
  • 57
  • 198
  • 323
2
votes
0 answers

How to log additional single variable with wandb and huggingface transformers

I am using Huggingface's Transformers Trainer object and I really like the support it has for wandb. For my use case, I have subclassed the Trainer and, in addition to the values that are logged by default, I would like to keep track of one…
ClonedOne
  • 569
  • 4
  • 20
2
votes
1 answer

getting aligned val_loss and train_loss plots for each epoch using WandB rather than separate plots

I have the following code for logging the train and val loss in each epoch using WandB API. I am not sure though why I am not getting val loss and train loss in the same epoch. Any idea how that could be fixed? wandb.log({"train loss":…
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
2
votes
1 answer

Log metrics with configuation in Pytorch Lightning using w&b

I am using PyTorch Lightning together with w&b and trying associate metrics with a finite set of configurations. In the LightningModule class I have defined the test_step as: def test_step(self, batch, batch_idx): x, y_true, config_file = batch …
Kevin
  • 3,096
  • 2
  • 8
  • 37
2
votes
0 answers

Connecting Julia to Weights & Biases over Python

I am trying to use weights&biases for my models written in Julia. I am using WeightsAndBiasLogger.jl and try to test their demo code: using Logging, WeightsAndBiasLogger args = (n_epochs=1_000, lr=1e-3) logger =…
Bloxx
  • 1,495
  • 1
  • 9
  • 21
2
votes
0 answers

wandb [SSL: WRONG_VERSION_NUMBER] error only thrown in Pycharm using python 3.8

I log the metrics of the training results on the wandb online server. This was working without any problems, till the beginning of this week. Since then i am suddenly unable to connect to the wandb online server and loggin the metrics isn't working…
jaisme
  • 51
  • 1
2
votes
0 answers

Weights and Biases watch log causing CUDA out of memory

I am trying to use WandB gradient visualization to debug the gradient flow in my neural net on Google Colab. Without WandB logging, the training runs without error, taking up 11Gb/16GB on the p100 gpu. However, adding this line wandb.watch(model,…
Ambrose
  • 183
  • 1
  • 14
2
votes
1 answer

How to plot confidence intervals for different training samples

I am working on running training with different divisions of a training set. The plots that I get (using wandb) are fine, but not quite informative in my opinion and high in variance. Is there a way to plot the mean of the plots, and then…
2
votes
1 answer

trainer.train() in Kaggle: StdinNotImplementedError: getpass was called, but this frontend does not support input requests

When saving a version in Kaggle, I get StdinNotImplementedError: getpass was called, but this frontend does not support input requests whenever I use the Transformers.Trainer class. The general code I use: from transformers import Trainer,…
2
votes
2 answers

YoloV5 killed at first epoch

I'm using a virtual machine on Windows 10 with this config: Memory 7.8 GiB Processor Intel® Core™ i5-6600K CPU @ 3.50GHz × 3 Graphics llvmpipe (LLVM 11.0.0, 256 bits) Disk Capcity 80.5 GB OS Ubuntu 20.10 64 Bit Virtualization Oracle I installed…
Peter
  • 1,844
  • 2
  • 31
  • 55
2
votes
1 answer

Weights&Biases Sweep Keras K-Fold Validation

I'm using Weights&Biases Cloud-based sweeps with Keras. So first i create a new Sweep within a W&B Project with a config like following: description: LSTM Model method: random metric: goal: maximize name: val_accuracy name:…
Ragnar
  • 45
  • 7
1
vote
1 answer

Wandb connects to company automatically

On my laptop, wandb is configured to log in to my company's wandb. However, I want to use my personal wandb account for my personal projects. Even after wandb login --relogin, it will still try to go to company.wandb.ai instead of api.wandb.ai. How…
Jechos
  • 21
  • 2
1
vote
0 answers

How to get all project tags using WandB API from a nested method/function?

How can I use the WandB API to get all the tags associated with a project in a nested method or function? Currently, I am using the following code: runs = api.runs(path=f"{entity}/{project}") tags = [] for run in tqdm(runs): …
羅文斌
  • 11
  • 1
1
2
3
8 9