You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am running a classifier model training script which generates a couple of custom plots: a barplot depicting class frequencies of the train/val set, the ROC and PRC curves of the val-set performance and a confusion matrix. For generating all these plots, I've used the basic functionality provided in the wandb documentation (Code snippets shared below).
I use both cloud and private versions of wandb. In the cloud version, when I run the attached code (shared below), the plots are successfully generated but when running in the local version, I get a "No data available" for all these plots. I'm not sure why exactly this is happening. I would greatly appreciate some help on this!
Expected Behavior
I'm supposed to get the following output (seen in cloud version):
But I get this (local wandb server):
Steps To Reproduce
Following is the code I wrote for generating these charts/plots:
Code for bar plot
# log the class frequencies in each fold
train_classes, train_outputs = np.unique(train.outputs, return_counts=True)
val_classes, val_outputs = np.unique(val.outputs, return_counts=True)
train_outputs = train_outputs / np.sum(train_outputs)
val_outputs = val_outputs / np.sum(val_outputs)
# create wandb tables
train_data = [[label, val] for (label, val) in zip(train_classes, train_outputs)]
train_table = wandb.Table(data=train_data, columns=["class", "frequency"])
val_data = [[label, val] for (label, val) in zip(val_classes, val_outputs)]
val_table = wandb.Table(data=val_data, columns=["class", "frequency"])
# log tables as barplot
wandb.log(
{
f"train_distribution_fold": wandb.plot.bar(
train_table, "class", "frequency", title=f'Class Distribution for Train set'
),
f"val_distribution_fold": wandb.plot.bar(
val_table, "class", "frequency", title=f'Class Distribution for Val set'
),
}
)
I'm running my code on a remote linux machine and visualizing the results on my desktop browser.
OS: Linux
Browsers: Chrome
Version: Chrome Version 122.0.6261.112 (Official Build) (arm64), W&B Local 0.50.3, W&B package version 0.16.3.
Additional Context
Similar to the suggestions in issue #4368, I ran a wandb verify and got the following:
Default host selected: http://localhost:8081
Find detailed logs for this test at: /tmp/tmpmj4fcxqt/wandb
Checking if logged in...................................................✅
Checking signed URL upload..............................................✅
Checking ability to send large payloads through proxy...................✅
Checking requests to base url...........................................❌
Connections are not made over https. SSL required for secure communications.
Checking requests made over signed URLs.................................❌
Signed URL requests not made over https. SSL is required for secure communications.
Checking CORs configuration of the bucket...............................❌
Your object store does not have a valid CORs configuration, you must allow GET and PUT to Origin: http://localhost:8081
Checking wandb package version is up to date............................✅
Checking logged metrics, saving and downloading a file..................✅
Checking artifact save and download workflows...........................✅
Not sure if the CORs configuration is the issue, but I didn't find any resolution for this issue in #4368
Additionally, here is the commands used to start up the local server on the remote machine:
wandb server start --port 8081
wandb login --host=http://localhost:8081
The text was updated successfully, but these errors were encountered:
hey @Aveturi13 - this seems like a CORS issue, but to confirm, would it be possible to send over the console/network logs associated with the workspace where you're not seeing the charts populate? if you're on chrome, you can obtain this by right clicking > Inspect > console/network
Current Behavior
Hi,
I am running a classifier model training script which generates a couple of custom plots: a barplot depicting class frequencies of the train/val set, the ROC and PRC curves of the val-set performance and a confusion matrix. For generating all these plots, I've used the basic functionality provided in the wandb documentation (Code snippets shared below).
I use both cloud and private versions of wandb. In the cloud version, when I run the attached code (shared below), the plots are successfully generated but when running in the local version, I get a "No data available" for all these plots. I'm not sure why exactly this is happening. I would greatly appreciate some help on this!
Expected Behavior
I'm supposed to get the following output (seen in cloud version):
But I get this (local wandb server):
Steps To Reproduce
Following is the code I wrote for generating these charts/plots:
Code for bar plot
Code for model evaluation charts
Screenshots
No response
Environment
I'm running my code on a remote linux machine and visualizing the results on my desktop browser.
OS: Linux
Browsers: Chrome
Version: Chrome Version 122.0.6261.112 (Official Build) (arm64), W&B Local 0.50.3, W&B package version 0.16.3.
Additional Context
Similar to the suggestions in issue #4368, I ran a
wandb verify
and got the following:Not sure if the CORs configuration is the issue, but I didn't find any resolution for this issue in #4368
Additionally, here is the commands used to start up the local server on the remote machine:
The text was updated successfully, but these errors were encountered: