Bonjour,

Je tente d'utiliser TensorBoard dans un callback avec la partie de code suivante :

Code Python : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
LOG_DIR = "/Data/exp42cpi_a/training/script/metrics/logs/"
dt = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
tb = TensorBoard(log_dir=os.path.join(logdir, dt + '_training'))
…
callbacks=[tb, checkpointer],

mais j'obtiens le message d'erreur suivant :
File "C:\Users\QTR7701\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\ops\gen_summary_ops.py", line 191, in create_summary_file_writer
    _six.raise_from(_core._status_to_exception(e.code, message), None)
  File "<string>", line 3, in raise_from
tensorflow.python.framework.errors_impl.InvalidArgumentError: Failed to create a directory: /Data/exp42cpi_a/training/script/metrics/logs/2020-01-13 19:28:19_training\train; Invalid argument [Op:CreateSummaryFileWriter]
Process finished with exit code 1
Lorsque je corrige légèrement comme suit :

Code Python : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
Code
dt = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
tb = TensorBoard(log_dir="logs")
…
callbacks=[tb, checkpointer],

J'obtiens alors le message d'erreur suivant :

File "C:\Users\QTR7701\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\keras\callbacks.py", line 1217, in set_model
   if model.run_eagerly:
AttributeError: 'Model' object has no attribute 'run_eagerly'
Est-ce que quelqu'un peut m'aider ?