pseudo_teetotaler
pseudo_teetotaler

Reputation: 1575

Tensorboard : Error metadata.tsv is not a file

I am manually trying to link embedding tensor with metadata.tsv, but I am getting following error: "$LOG_DIR/metadata.tsv is not a file."

I am running Tensorboard with following command : tensorboard --logdir default/ and my projector_config.pbtxt file is following :

embeddings {
  tensor_name: 'embedding/decoder_embedding_matrix'
  metadata_path: '$LOG_DIR/metadata.tsv'
  }

I have checked my log_dir and it has all files. [Screen shot attached]

LOG_DIR Screenshot:

enter image description here

Error Screenshot enter image description here

Upvotes: 0

Views: 1197

Answers (1)

desertnaut
desertnaut

Reputation: 60321

It cannot recognize $LOG_DIR the way you have used it. Either edit projector_config.pbtxt manually to provide the full path, or use this in your code:

import os
embedding.metadata_path = os.path.join(LOG_DIR, 'metadata.tsv')

where again LOG_DIR should preferably be the full path (and not the relative one).

Upvotes: 2

Related Questions