Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Implement detection mAP evaluator wrapper and unify label format between SSD loss and mAP evaluator #8736

Merged
qingqing01 merged 5 commits into
PaddlePaddle:developfrom
qingqing01:map
Mar 6, 2018
Merged

Implement detection mAP evaluator wrapper and unify label format between SSD loss and mAP evaluator #8736
qingqing01 merged 5 commits into
PaddlePaddle:developfrom
qingqing01:map

Conversation

@qingqing01
Copy link
Copy Markdown
Contributor

Fix #8735

Comment thread python/paddle/fluid/evaluator.py Outdated
for epoch in PASS_NUM:
map_evaluator.reset(exe)
for data in batches:
loss, cur_map_v, accum_map_v = exe.run(fetch_list=[cost, cur_map, accum_map])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems exceeded 80 columns.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@qingqing01 qingqing01 changed the title Implement detection mAP evaluator wrapper. Implement detection mAP evaluator wrapper and unify label format between SSD loss and mAP evaluator Mar 5, 2018
wanghaox
wanghaox previously approved these changes Mar 5, 2018
Copy link
Copy Markdown
Contributor

@wanghaox wanghaox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

"the number of offset is N + 1, if LoD[i + 1] - LoD[i] == 0, "
"means there is no ground-truth data.");
AddInput("HasState",
"(Tensor<int>) A tensor with shape [1], 0 mean ignoring input "
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mean --> means

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks!

Comment thread python/paddle/fluid/evaluator.py Outdated
The general steps are as follows:
1. calculate the true positive and false positive according to the input
of detection and labels.
2. calculate mAP value, support two methods: '11 point' and 'integral'.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

methods --> versions

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks!

Comment thread python/paddle/fluid/evaluator.py Outdated
https://arxiv.org/abs/1512.02325

Args:
input (Variable): the detection results, which is a LoDTensor with shape
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the --> The ? same as follows.

Copy link
Copy Markdown
Contributor Author

@qingqing01 qingqing01 Mar 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

@wanghaox wanghaox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qingqing01 qingqing01 merged commit 608feea into PaddlePaddle:develop Mar 6, 2018
@qingqing01 qingqing01 deleted the map branch March 7, 2018 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants