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

当PNet检测到一个超过阈值的anchor时,为什么要做转置? #30

Open
KLH1472 opened this issue Oct 7, 2018 · 2 comments

Comments

@KLH1472
Copy link

KLH1472 commented Oct 7, 2018

如题~

@KLH1472
Copy link
Author

KLH1472 commented Oct 7, 2018

if y.shape[0] == 1: # only one point exceed threshold
    y = y.T
    x = x.T
    score = map[x,y].T
    dx1 = dx1.T
    dy1 = dy1.T
    dx2 = dx2.T
    dy2 = dy2.T
    # a little stange, when there is only one bb created by PNet
    
    #print("1: x,y", x,y)
    a = (x*map.shape[1]) + (y+1)
    x = a/map.shape[0]
    y = a%map.shape[0] - 1
    #print("2: x,y", x,y)
else:
    score = map[x,y]

@KLH1472
Copy link
Author

KLH1472 commented Oct 7, 2018

我觉得这个转置操作是没必要的

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

No branches or pull requests

1 participant