jiaor17 / DiffCSP

[NeurIPS 2023] The implementation for the paper "Crystal Structure Prediction by Joint Equivariant Diffusion"
MIT License
59 stars 18 forks source link

requirements.txt or pip list needed #18

Open BugBuildingMaster opened 1 month ago

BugBuildingMaster commented 1 month ago

Hi,i'm trying to get this project work,i run the command like like this: python diffcsp/run.py data=mp_20 expname=test

and i got this issue:

0%|          | 1/27136 [00:10<75:41:45, 10.04s/it]G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\pymatgen\io\cif.py:1168: UserWarning: Issues encountered while parsing CIF: Some fractional coordinates rounded to ideal values to avoid issues with finite precision.
  warnings.warn("Issues encountered while parsing CIF: " + "\n".join(self.warnings))

it was a warning and it still running,so i think it's ok for running,but when it get 100%,it still have issue,this is what i got:

100%|██████████| 27136/27136 [11:34<00:00, 39.10it/s]
I:\DiffCSP-PP-main\diffcsp\common\data_utils.py:1151: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_new.cpp:277.)
  targets = torch.tensor([d[key] for d in data_list])
I:\DiffCSP-PP-main\diffcsp\common\data_utils.py:1119: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
  X = torch.tensor(X, dtype=torch.float)
[2024-06-20 18:32:39,865][hydra.utils][INFO] - Instantiating <diffcsp.pl_modules.diffusion.CSPDiffusion>
[2024-06-20 18:32:41,295][hydra.utils][INFO] - Passing scaler from datamodule to model <StandardScalerTorch(means: -1.219802737236023, stds: 1.0293837785720825)>
[2024-06-20 18:32:41,298][hydra.utils][INFO] - Adding callback <LearningRateMonitor>
[2024-06-20 18:32:41,298][hydra.utils][INFO] - Adding callback <EarlyStopping>
[2024-06-20 18:32:41,299][hydra.utils][INFO] - Adding callback <ModelCheckpoint>
[2024-06-20 18:32:41,301][hydra.utils][INFO] - Instantiating <WandbLogger>
Error executing job with overrides: ['data=mp_20', 'expname=test']
Traceback (most recent call last):
  File "I:\DiffCSP-PP-main\diffcsp\run.py", line 178, in <module>
    main()
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\hydra\main.py", line 49, in decorated_main
    _run_hydra(
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\hydra\_internal\utils.py", line 367, in _run_hydra
    run_and_report(
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\hydra\_internal\utils.py", line 214, in run_and_report
    raise ex
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\hydra\_internal\utils.py", line 211, in run_and_report
    return func()
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\hydra\_internal\utils.py", line 368, in <lambda>
    lambda: hydra.run(
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\hydra\_internal\hydra.py", line 110, in run
    _ = ret.return_value
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\hydra\core\utils.py", line 233, in return_value
    raise self._return_value
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\hydra\core\utils.py", line 160, in run_job
    ret.return_value = task_function(task_cfg)
  File "I:\DiffCSP-PP-main\diffcsp\run.py", line 174, in main
    run(cfg)
  File "I:\DiffCSP-PP-main\diffcsp\run.py", line 124, in run
    settings=wandb.Settings(start_method="fork"),
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\wandb\sdk\wandb_settings.py", line 1345, in __init__
    self.update({prop: kwargs[prop]}, source=source)
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\wandb\sdk\wandb_settings.py", line 1482, in update
    self.__dict__[key].update(settings.pop(key), source=source)
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\wandb\sdk\wandb_settings.py", line 591, in update
    self._value = self._validate(self._preprocess(value))
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\wandb\sdk\wandb_settings.py", line 561, in _validate
    if not v(value):
  File "G:\environment\Anaconda3\envs\DiffCSPpp\lib\site-packages\wandb\sdk\wandb_settings.py", line 1008, in _validate_start_method
    raise UsageError(
wandb.errors.UsageError: Settings field `start_method`: 'fork' not in ['thread', 'spawn']

i think the main problem is the enironment,so i wonder if i can have the requirements.txt or the pip list to build the same environment like the project.

and this is my environment:

Package                 Version
----------------------- -----------
absl-py                 2.1.0      
aiohttp                 3.9.5      
aiosignal               1.3.1      
antlr4-python3-runtime  4.8        
ase                     3.23.0     
async-timeout           4.0.3      
attrs                   23.2.0     
cachetools              5.3.3      
certifi                 2024.6.2
charset-normalizer      3.3.2
click                   8.1.7
colorama                0.4.6
contourpy               1.1.1
cycler                  0.12.1
dill                    0.3.8
docker-pycreds          0.4.0
einops                  0.8.0
emmet-core              0.68.0
filelock                3.15.1
fonttools               4.53.0
frozenlist              1.4.1
fsspec                  2024.6.0
future                  1.0.0
gitdb                   4.0.11
GitPython               3.1.43
google-auth             2.30.0
google-auth-oauthlib    1.0.0
googledrivedownloader   0.4
grpcio                  1.64.1
hydra-core              1.1.0
idna                    3.7
importlib_metadata      7.1.0
importlib_resources     6.4.0
intel-openmp            2021.4.0
isodate                 0.6.1
Jinja2                  3.1.4
joblib                  1.4.2
kiwisolver              1.4.5
latexcodec              3.0.0
lightning-utilities     0.11.2
llvmlite                0.41.1
Markdown                3.6
MarkupSafe              2.1.5
matplotlib              3.7.5
mkl                     2021.4.0
monty                   2023.9.25
mp-api                  0.35.1
mpmath                  1.3.0
msgpack                 1.0.8
multidict               6.0.5
multiprocess            0.70.16
networkx                3.1
numba                   0.58.1
numpy                   1.24.4
oauthlib                3.2.2
omegaconf               2.1.2
p_tqdm                  1.4.0
packaging               24.1
palettable              3.3.3
pandas                  2.0.3
pathos                  0.3.2
pillow                  10.3.0
pip                     24.0
platformdirs            4.2.2
plotly                  5.22.0
pox                     0.3.4
ppft                    1.7.6.8
protobuf                5.27.1
psutil                  6.0.0
py3Dmol                 2.1.0
pyasn1                  0.6.0
pyasn1_modules          0.4.0
pybtex                  0.24.0
pydantic                1.10.16
pyDeprecate             0.3.0
pymatgen                2023.8.10
pyparsing               3.1.2
python-dateutil         2.9.0.post0
python-dotenv           0.21.0
python-louvain          0.16
pytorch-lightning       2.3.0
pytz                    2024.1
pyxtal                  0.4.5
PyYAML                  5.4.1
rdflib                  7.0.0
requests                2.32.3
requests-oauthlib       2.0.0
rsa                     4.9
ruamel.yaml             0.18.6
ruamel.yaml.clib        0.2.8
scikit-learn            1.3.2
scipy                   1.10.1
sentry-sdk              2.5.1
setproctitle            1.3.3
setuptools              69.5.1
six                     1.16.0
smmap                   5.0.1
spglib                  2.4.0
sympy                   1.12.1
tabulate                0.9.0
tbb                     2021.12.0
tenacity                8.4.1
tensorboard             2.14.0
tensorboard-data-server 0.7.2
threadpoolctl           3.5.0
torch                   2.3.1
torch_geometric         1.7.2
torch_scatter           2.1.2
torch_sparse            0.6.18
torchmetrics            1.4.0.post0
tqdm                    4.66.4
typing_extensions       4.12.2
tzdata                  2024.1
uncertainties           3.2.1
urllib3                 2.2.2
wandb                   0.17.2
Werkzeug                3.0.3
wheel                   0.43.0
yarl                    1.9.4
zipp                    3.19.2