TensorBoard 图像的选项卡仅显示黑色或灰色方块

JDe*_*Dev 5 classification conv-neural-network keras tensorflow tensorboard

所以我在谷歌 Colab 的笔记本上运行 TensorBoard,当我检查图像选项卡时,我得到的只是每一层的一些黑色或灰色方块: 在此处输入图片说明 为什么我得到这些类型的图像而不是正确的图像?我唯一能想到的是,我通过这种方法在 Google colab 上使用 TensorBoard,这可能会搞砸一些事情。

这是我使用的代码:

tensorboard = TensorBoard(
    log_dir=r'./logs/{}'.format('main_model'),
    write_graph=True,
    write_grads=True,
    histogram_freq=1,
    write_images=True,
)
Run Code Online (Sandbox Code Playgroud)