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

Tensor Shape Issues #18

Open
ollierodrigues opened this issue Dec 1, 2023 · 10 comments
Open

Tensor Shape Issues #18

ollierodrigues opened this issue Dec 1, 2023 · 10 comments

Comments

@ollierodrigues
Copy link

I've trained a model on the 'Ligand' submodel variation successfully. When running the model to create an output of SMILES I came across this error related to the the tensor shapes:

RuntimeError: Error(s) in loading state_dict for Generator2:
size mismatch for drug_nodes.weight: copying a param with shape torch.Size([128, 9]) from checkpoint, the shape in current model is torch.Size([128, 27]).
size mismatch for nodes_output_layer.weight: copying a param with shape torch.Size([9, 128]) from checkpoint, the shape in current model is torch.Size([27, 128]).
size mismatch for nodes_output_layer.bias: copying a param with shape torch.Size([9]) from checkpoint, the shape in current model is torch.Size([27]).

I can't find anywhere in the code to change the number of nodes to generate molecules

@atabeyunlu
Copy link
Collaborator

Thanks for your interest!
I appreciate you reporting this issue. To help me investigate further, could you please provide more details about your data and the specific commands you used?

@ollierodrigues
Copy link
Author

ollierodrigues commented Dec 8, 2023 via email

@ollierodrigues
Copy link
Author

ollierodrigues commented Dec 11, 2023 via email

@atabeyunlu
Copy link
Collaborator

Hey Ollie,

I've noticed that I'm unable to view the images you shared. I'll investigate this matter further, taking into consideration the details you provided.

@ollierodrigues
Copy link
Author

ollierodrigues commented Dec 11, 2023 via email

@ollierodrigues
Copy link
Author

@atabeyunlu
Copy link
Collaborator

Hey Ollie, I only see the text files now. Maybe you should upload the images through GitHub rather than sending them via email.

@ollierodrigues
Copy link
Author

Hi,

Thanks for getting back to me. This image here is the image associated with our dataset errors.
Our_Ligand_Dataset_Error

@ollierodrigues
Copy link
Author

This image is the error associated with your dataset.
Your_DrugGEN_Dataset_Error

@atabeyunlu
Copy link
Collaborator

Thanks, I will be getting back to you as soon as possible.

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