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

atom view #42

Open
karel-w opened this issue Jul 26, 2023 · 1 comment
Open

atom view #42

karel-w opened this issue Jul 26, 2023 · 1 comment

Comments

@karel-w
Copy link

karel-w commented Jul 26, 2023

I was wondering how atom view is implemented? I'm getting a shape mismatch.

In mc-gearnet_edge.yaml I changed the view and entity level to 'atom' and input dimension to 38. As i find 38 atom types in the torchdrug protein class.
Is there another setting i need to change?

Thanks for creating GearNet!

@Oxer11
Copy link
Collaborator

Oxer11 commented Jul 31, 2023

Hi, thanks for raising the question. The atom view is set to changing the node features from residue features to atom features. You can find the implementation here: https://github.com/DeepGraphLearning/torchdrug/blob/6066fbd82360abb5f270cba1eca560af01b8cc90/torchdrug/data/protein.py#L113. I think you also need to check the implementation of Multiview Contrast to make sure the shape of node features can match.

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