Skip to content
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

Simplify the setup for AnchorGenerator in unittest #3023

Merged
merged 1 commit into from
Nov 19, 2020

Conversation

zhiqwang
Copy link
Contributor

@zhiqwang zhiqwang commented Nov 18, 2020

Hi @fmassa , this is a follow-up PR of #2983 . Now there is one layer with grid_size (3x3), so the estimated number of anchors are 9. And the detailed values of the anchor is

torch.tensor([[-5., -5.,  5.,  5.],
              [ 0., -5., 10.,  5.],
              [ 5., -5., 15.,  5.],
              [-5.,  0.,  5., 10.],
              [ 0.,  0., 10., 10.],
              [ 5.,  0., 15., 10.],
              [-5.,  5.,  5., 15.],
              [ 0.,  5., 10., 15.],
              [ 5.,  5., 15., 15.]])

in this case. Does this meet the requirements?

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.

Much better, thanks a lot!

@fmassa fmassa merged commit 9c79934 into pytorch:master Nov 19, 2020
bryant1410 pushed a commit to bryant1410/vision-1 that referenced this pull request Nov 22, 2020
vfdev-5 pushed a commit to Quansight/vision that referenced this pull request Dec 4, 2020
@zhiqwang zhiqwang deleted the test_anchor_outputs 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