'Unable to produce tensorboard in Keras pre trained model
I am building Pre trained inception model for image classification in keras i am trying to produce tensorboard but getting errors like "Unable to create directory: code :
from tensorflow.keras.callbacks import TensorBoard
from time import time
tensorboard = TensorBoard(log_dir="logs/{}".format(time()))
history= model_inc.fit(trainX,trainY,epochs=9,batch_size=16,
validation_data=(testX,testY),
shuffle=True,verbose=1,
callbacks=[tensorboard])
Solution 1:[1]
This may be a problem due to Python on Windows. Try replacing the path of logdir
in tensorboard
to tensorboard = TensorBoard(log_dir=os.path.join("logs",time())
.
You can refer this link for more details on the same.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | halfer |