-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fengwu ghr #114
Fengwu ghr #114
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great so far! Just a few comments.
height, width, | ||
method: str = "cubic"): | ||
# TODO 1. CPU only | ||
# 2. The mesh is a rectangle, not a sphere |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It being a rectangle is fine, it has to be for the MetaModel to take it as an image. So I think this is great!
squared_distance = (diff * diff).sum(dim=-1, keepdim=True) | ||
weights = 1.0 / torch.clamp(squared_distance, min=1e-16) | ||
|
||
# print((x[x_idx]*weights).shape) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove commented out code like this when you finish with the changes, just to keep it a bit cleaner.
@all-contributors please add @rnwzd for code |
I've put up a pull request to add @rnwzd! 🎉 |
No description provided.