Comments (6)
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.
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.
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.
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.
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.
Thank you very much!
from diffcsp.
Related Issues (18)
- more dependencies are needed
- got some trouble with training a model HOT 2
- why do we use only a single test batch and multiple "T_max" ranges in `optimization.py` (?) HOT 1
- how to visualize the generated results?
- hydra.errors.InstantiationException: Error locating target 'diffcsp.pl_data.datamodule.CrystDataModule', set env var HYDRA_FULL_ERROR=1 to see chained exception. full_key: data.datamodule HOT 2
- Predictor-corrector sampling reversed (?) HOT 2
- some trouble in training HOT 2
- Adaptation of CDVAE HOT 1
- requirements.txt or pip list needed
- how to train the model HOT 2
- Environment variable 'HYDRA_JOBS' not found HOT 16
- Double-check Hydra Version HOT 1
- How can i train a model for a property optimization task? HOT 1
- Question about the paper.
- Query about algorithms of sample function HOT 4
- Is There any way to keep the composition of a crystal same , and just predict the structure ? HOT 1
- Environmental configuration issues HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diffcsp.