Machine-Learning-Collection icon indicating copy to clipboard operation
Machine-Learning-Collection copied to clipboard

warning: Embedding dir exists, did you set global_step for add_embedding()?

Open massisenergy opened this issue 2 years ago • 1 comments

I was doing the pytorch tensor board tutorial. While running the pytorch_tensorboard_.py notebook file, I get this:

warning: Embedding dir exists, did you set global_step for add_embedding()?

Somebody else also faced this (might be in a different case). I don't understand the cause & effect of this, any help?

Thanks in advance!

massisenergy avatar Dec 10 '22 13:12 massisenergy

This warning indicates that the embedding directory already exists.

To avoid it you can set the global_step parameter in the add_embedding method to ensure that each embedding is logged with a unique step.

For example:

writer.add_embedding(features,
                    metadata=class_labels,
                    label_img=labels,
                    global_step=0)

AloscariS avatar Jan 28 '25 10:01 AloscariS