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

Where does the variable 'points' define? #28

Open
acrith2015 opened this issue May 22, 2020 · 1 comment
Open

Where does the variable 'points' define? #28

acrith2015 opened this issue May 22, 2020 · 1 comment

Comments

@acrith2015
Copy link

Where does the variable 'points' define in the first line of function "find_dis()"? Thank you very much!

def find_dis(point):
square = np.sum(pointpoints, axis=1)
dis = np.sqrt(np.maximum(square[:, None] - 2
np.matmul(point, point.T) + square[None, :], 0.0))
dis = np.mean(np.partition(dis, 3, axis=1)[:, 1:4], axis=1, keepdims=True)
return dis

@lartpang
Copy link

@acrith2015

im, points = generate_data(im_path)
if sub_phase == 'train':
dis = find_dis(points)

It may be the output points of generate_data. So, here is the same as square = np.sum(point, point, axis=1)

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

2 participants