Skip to content

Adds Anchor tests with ground-truth outputs #2983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 18, 2020

Conversation

zhiqwang
Copy link
Contributor

@zhiqwang zhiqwang commented Nov 10, 2020

Hi @fmassa , As discussed in #2971 , This is the unittest of AnchorGenerator with a groud-truth outputs. There are 3 layers in my configs of the Anchor, and the size of each grid are (4x8), (2x4) and (1x2) respectively, so the estimated number of anchors are 126.

@codecov
Copy link

codecov bot commented Nov 10, 2020

Codecov Report

Merging #2983 (ec2a030) into master (481ef51) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2983   +/-   ##
=======================================
  Coverage   73.39%   73.39%           
=======================================
  Files          99       99           
  Lines        8825     8825           
  Branches     1391     1391           
=======================================
  Hits         6477     6477           
  Misses       1929     1929           
  Partials      419      419           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 481ef51...ec2a030. Read the comment docs.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks!

For a follow-up PR, we could simplify the setup for AnchorGenerator so that it only has say 4 or 9 anchors, and compare it with ground-truth anchor values, such as

[[0, 0, 10, 10],
 [10, 10, 20, 20],
 ...

this way we can test that we don't introduce regressions in the computation of the anchors.

@fmassa fmassa merged commit b18a475 into pytorch:master Nov 18, 2020
bryant1410 pushed a commit to bryant1410/vision-1 that referenced this pull request Nov 22, 2020
* Add AnchorGenerator with ground-truth outputs

* Minor fixes
vfdev-5 pushed a commit to Quansight/vision that referenced this pull request Dec 4, 2020
* Add AnchorGenerator with ground-truth outputs

* Minor fixes
@zhiqwang zhiqwang deleted the add_anchor_test branch May 8, 2021 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants