CederGroupHub / chgnet

Pretrained universal neural network potential for charge-informed atomistic modeling https://chgnet.lbl.gov
https://doi.org/10.1038/s42256-023-00716-3
Other
215 stars 55 forks source link

[Bug]: Error Encountered when Using 'predict_structure' for Structure Prediction #99

Closed hoon-ock closed 7 months ago

hoon-ock commented 7 months ago

Email (Optional)

No response

Version

tried both v0.2.0 and v0.3.0 versions

Which OS(es) are you using?

What happened?

I encountered the following error when using the 'predict_structure' function to feed the structure, like this: 'prediction = chgnet.predict_structure(structure, return_crystal_feas=True)

image

structure: image

Code snippet

No response

Log output

No response

Code of Conduct

ZLG001 commented 7 months ago

got similar error in macos, upgrade pymatgen (2023.11.12), chgnet (0.3.2), AND torch. works for me

BowenD-UCB commented 7 months ago

@hoon-ock Can you provide your pymatgen version that generates the issue? can you please try update you pymatgen version and see if that helps?

cy0752 commented 2 months ago

I encountered the same error. I'm using pymatgen(2024, 4) and the newest chgnet, and torch (1.11)