question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running the molecule generation tutorial

See original GitHub issue

When following the molecule generation tutorial in https://torchdrug.ai/docs/tutorials/generation.html, I got the following error when running the following code to generate with the pretrained GCPNresults = task.generate(num_sample=32, max_resample=5). Here is the error message: ***/torchdrug/data/graph.py", line 1171, in _check_attribute raise ValueError("Expect node attribute %sto have shape (%d, *), but found %s" % ValueError: Expect node attributeatom_feature to have shape (64, *), but found torch.Size([32, 18]) Could you kindly check and provide any help?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
liusulincommented, Jul 2, 2022

I’m experiencing the same issue. I also tried to downgrade to Torch 1.9.0 but the issue is still occurring. Any suggestion on how to fix it? Thank you!

I was able to run it by downgrading TorchDrug to v0.1.2, but I didn’t have enough time to find out what is the exact issue for v0.1.3. Hope this is helpful!

0reactions
jannisborncommented, Aug 15, 2022

I believe that this issue should be fixed on current master

Read more comments on GitHub >

github_iconTop Results From Across the Web

On failure modes in molecule generation and optimization
This problem is intensified when using machine learning models as scoring functions, which we show in Section “Failure mechanisms in goal-directed generation”.
Read more >
Master your molecule generator 2. Using cRNNs
Small tutorial showing how to use the Deep Drug Coder and a pretrained model to generate novel molecules with pre specified properties.
Read more >
Drug Molecule Generation with VAE - Keras
Introduction. In this example, we use a Variational Autoencoder to generate molecules for drug discovery. We use the research papers Automatic ...
Read more >
Troubleshooting Cell Ranger -Software - Support
A common preflight failures occurs when bcl2fastq has not been installed. The cellranger mkfastq pipeline will generate the following error if Illumina's ...
Read more >
MolecularAI/GraphINVENT: Graph neural networks ... - GitHub
Description. GraphINVENT is a platform for graph-based molecular generation using graph neural networks. GraphINVENT uses a tiered deep neural network ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found