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

Confusion about revert points #18

Open
binhmuc opened this issue Mar 12, 2020 · 0 comments
Open

Confusion about revert points #18

binhmuc opened this issue Mar 12, 2020 · 0 comments

Comments

@binhmuc
Copy link

binhmuc commented Mar 12, 2020

Hi bro,
I found that in get dataset, you set up format code is point = X, Y
But in the point_tnf.py:
Your code is:

def PointsToUnitCoords(P,im_size):
h,w = im_size[:,0],im_size[:,1]
P_norm = P.clone()
# normalize Y
P_norm[:,0,:] = normalize_axis(P[:,0,:],w.unsqueeze(1).expand_as(P[:,0,:]))
# normalize X
P_norm[:,1,:] = normalize_axis(P[:,1,:],h.unsqueeze(1).expand_as(P[:,1,:]))
return P_norm

So, i have a quesion is that; P_norm[:,0,:] is x-axis and P_norm[:,1,:] is y-axis ?

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