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

Fengwu ghr #114

Merged
merged 9 commits into from
Jun 17, 2024
Merged

Fengwu ghr #114

merged 9 commits into from
Jun 17, 2024

Conversation

rnwzd
Copy link
Contributor

@rnwzd rnwzd commented Jun 11, 2024

No description provided.

Copy link
Member

@jacobbieker jacobbieker left a 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
Copy link
Member

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)
Copy link
Member

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.

@jacobbieker jacobbieker merged commit ccaea16 into main Jun 17, 2024
7 of 8 checks passed
@peterdudfield
Copy link
Contributor

@all-contributors please add @rnwzd for code

Copy link
Contributor

@peterdudfield

I've put up a pull request to add @rnwzd! 🎉

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

Successfully merging this pull request may close these issues.

3 participants