wandb icon indicating copy to clipboard operation
wandb copied to clipboard

[Q] After running run.log, if we update the table and use run.log again it doesn't work.

Open DANISHFAYAZNAJAR opened this issue 1 year ago • 2 comments

Screenshot 2024-02-02 at 12 17 17 PM

After running run.log() first time it logs to run successfully . But I try to add more data and log that too, but it's not logging that as well.

DANISHFAYAZNAJAR avatar Feb 02 '24 06:02 DANISHFAYAZNAJAR

Screenshot 2024-02-02 at 12 47 04 PM

On local if I am add more data to table its getting added but when I log the table only that data is logged which has been initially logged.

Screenshot 2024-02-02 at 12 50 42 PM Screenshot 2024-02-02 at 12 50 51 PM

DANISHFAYAZNAJAR avatar Feb 02 '24 07:02 DANISHFAYAZNAJAR

Hi @DANISHFAYAZNAJAR , add_data does not allow you to continuously update wandb tables that were previously logged. It is intended for incrementally adding data to your table before you log it's finalized version to wandb. Example:

my_table = wandb.Table(columns=["a","b"], data = [["a1", "b1"], ["a2", "b2"]])
my_table.add_data("a3", "b3")
....Keep adding data via add_data
run.log() on finalized table

If you are interested in streaming data to a wandb table, you will need to use our weave Stream Table feature, see here https://docs.wandb.ai/guides/weave/streamtable

MBakirWB avatar Feb 06 '24 18:02 MBakirWB

Hi @DANISHFAYAZNAJAR , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

MBakirWB avatar Feb 09 '24 20:02 MBakirWB