From a6cbcd73c9a677dea1a37eb2ea361f933aa7b89d Mon Sep 17 00:00:00 2001 From: SunGaofeng Date: Mon, 1 Jul 2019 16:38:57 +0800 Subject: [PATCH] add readme for ctcn metrics calculation (#2644) * add readme for ctcn metrics calculation * fix code format in metrics/detections/README.md * fix code format and add ``` in code lines --- PaddleCV/PaddleVideo/metrics/detections/README.md | 13 +++++++++++++ PaddleCV/PaddleVideo/models/ctcn/README.md | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 PaddleCV/PaddleVideo/metrics/detections/README.md diff --git a/PaddleCV/PaddleVideo/metrics/detections/README.md b/PaddleCV/PaddleVideo/metrics/detections/README.md new file mode 100644 index 00000000..24fa08a4 --- /dev/null +++ b/PaddleCV/PaddleVideo/metrics/detections/README.md @@ -0,0 +1,13 @@ +## ActivityNet 指标计算 + +- ActivityNet数据集的具体使用说明可以参考其[官方网站](http://activity-net.org) + +- 下载指标评估代码,请从[ActivityNet Gitub repository](https://github.com/activitynet/ActivityNet.git)下载 + +- 计算精度指标 + + ```cd ActivityNet/Evaluation``` + + ```python get_detection_performance.py ./data/activity_net.v1-3.min.json $Test_Result``` + + 其中Test_Result是运行测试程序test.py输出的json格式的文件。 diff --git a/PaddleCV/PaddleVideo/models/ctcn/README.md b/PaddleCV/PaddleVideo/models/ctcn/README.md index 136cf989..4d247d76 100644 --- a/PaddleCV/PaddleVideo/models/ctcn/README.md +++ b/PaddleCV/PaddleVideo/models/ctcn/README.md @@ -59,6 +59,8 @@ C-TCN的训练数据采用ActivityNet1.3提供的数据集,数据下载及准 - 若未指定`--weights`参数,脚本会下载已发布模型[model](https://paddlemodels.bj.bcebos.com/video_detection/ctcn.tar.gz)进行评估 +- 运行上述程序会将测试结果保存在json文件中,使用ActivityNet官方提供的测试脚本,即可计算MAP。具体计算过程请参考[指标计算](../../metrics/detections/README.md) + 当取如下参数时,在ActivityNet1.3数据集下评估精度如下: | score\_thresh | nms\_thresh | soft\_sigma | soft\_thresh | MAP | -- GitLab