【问题标题】:How to get mAP in Tensorboard如何在 Tensorboard 中获取 mAP
【发布时间】:2020-04-23 21:49:35
【问题描述】:

我训练了几次,现在有很多 events.out.tfevents- 文件。 现在我想在 tensorboard 中分析这些数据,因为我需要不同训练课程的准确度/mAP。 如果我在最后一次培训课程中打开张量板,现在会出现问题: 张量板 --logdir="./traing" 我只看到学习率和损失。 (见打印屏幕) 我怎样才能看到更多?尤其是准确率/mAP?

我有tensorflow/board 1.13.1Ubuntu 18.04 并关注了这个tutorial

【问题讨论】:

    标签: dictionary tensorflow tensorboard


    【解决方案1】:

    首先您需要创建评估数据。为此运行以下命令。

    python3 legacy/eval.py \
    --logtostderr \
    --pipeline_config_path=[path to config file] \
    --checkpoint_dir=[path to checkpoints directory] \
    --eval_dir=[path to directory to save evaluation data]
    

    请注意,这是在 tensorflow 1.3.1 中完成的。在您的情况下,eval.py 文件可能不在 lagacy 文件夹中。

    例如,请参阅下面的命令。

    python3 legacy/eval.py \
    --logtostderr \
    --pipeline_config_path=training/faster_rcnn_resnet101_coco.config \
    --checkpoint_dir=training/ \
    --eval_dir=eval/
    

    然后使用以下命令运行 tensorboard。

    tensorboard --logdir=eval/
    

    这里eval是你给保存评估数据的目录。

    【讨论】:

    • 谢谢。但这将显示评估数据集的 mAP。如何检查训练数据集的mAP?这对于检查我们是否在训练数据集上过度拟合模型很有用。
    • 我指的是训练数据集。所以评估是在训练数据集上完成的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-03
    • 2020-12-27
    • 2020-11-27
    • 2020-07-14
    • 1970-01-01
    相关资源
    最近更新 更多