Implement detection mAP evaluator wrapper and unify label format between SSD loss and mAP evaluator #8736
Merged
Merged
Conversation
pkuyym
reviewed
Mar 5, 2018
| 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]) |
pkuyym
reviewed
Mar 5, 2018
| "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 " |
| 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'. |
| https://arxiv.org/abs/1512.02325 | ||
|
|
||
| Args: | ||
| input (Variable): the detection results, which is a LoDTensor with shape |
Contributor
There was a problem hiding this comment.
the --> The ? same as follows.
Contributor
Author
There was a problem hiding this comment.
Done. From http://www.paddlepaddle.org/docs/develop/api/en/fluid/layers.html , upper case is betther.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #8735