Giter Club home page Giter Club logo

Comments (6)

jiaor17 avatar jiaor17 commented on September 15, 2024

Hi RomanovIgnat!
It appears that you might use the property prediction model in prop_models directly for structure prediction. To resolve this issue, you should first train the CSP model by running the following command:

python diffcsp/run.py data=<dataset> expname=<expname>

After training the CSP model, you should be able to evaluate it without encountering the TypeError.
Hope this could help you!

from diffcsp.

RomanovIgnat avatar RomanovIgnat commented on September 15, 2024

Thanks a lot! But I still get an error

[2023-11-23 19:57:34,780][hydra.utils][INFO] - Instantiating <diffcsp.pl_modules.diffusion.CSPDiffusion>
[2023-11-23 19:57:35,421][torch.distributed.nn.jit.instantiator][INFO] - Created a temporary directory at /tmp/tmprttu07pg
[2023-11-23 19:57:35,423][torch.distributed.nn.jit.instantiator][INFO] - Writing /tmp/tmprttu07pg/_remote_module_non_scriptable.py
Error executing job with overrides: ['data=perov_5', 'expname=test_exp']
Error in call to target 'diffcsp.pl_modules.diffusion.CSPDiffusion':
InstantiationException("Error locating target 'diffcsp.pl_modules.cspnet.CSPNet', set env var HYDRA_FULL_ERROR=1 to see chained exception.\nfull_key: decoder")
full_key: model

I must be doing something wrong again?

from diffcsp.

jiaor17 avatar jiaor17 commented on September 15, 2024

Sorry we haven't encountered this error before. To get a clearer understanding of the error, you can set the environment variable HYDRA_FULL_ERROR=1 to see the full traceback and more detailed information. You can set the environment variable by adding the following line to your .env file or executing it in your terminal before running the script:

export HYDRA_FULL_ERROR=1

After setting the environment variable, run your script again. This time, you should see more detailed error information, which will help us diagnose the issue further. If you're still having trouble, please share the additional error details, and we'll be happy to help you resolve the problem.

from diffcsp.

RomanovIgnat avatar RomanovIgnat commented on September 15, 2024

Okay, I completely reinstalled all the dependencies and did exactly the same setup and now I get

pytorch_lightning.utilities.exceptions.MisconfigurationException: You requested GPUs: [0]
But your machine only has: []

So the question is, is it possible to use, for example, some kind of checkpoint to run on a local machine? If so, I would be very grateful!

from diffcsp.

jiaor17 avatar jiaor17 commented on September 15, 2024

Hi, it appears that your local machine doesn't have a GPU, which is causing the MisconfigurationException. To address your question about using checkpoints: we provide pre-trained checkpoints for inference, which you can find here. However, please note that running on a CPU, rather than a GPU, can result in significantly longer inference times.

from diffcsp.

RomanovIgnat avatar RomanovIgnat commented on September 15, 2024

Thank you very much!

from diffcsp.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.