Closed naveenmohandas closed 3 months ago
i also recently noticed this error
TypeError: Object of type int64 is not JSON serializable
both should be easy to fix
Hi Janosh, Thanks for the quick fix. I am a bit new to this so could you let me know how to get the fix?
I tried upgrading using pip pip install --upgrade --force-reinstall chgnet --no-cache-dir
but for some reason numpy gets upgraded to 2.0.0 then I manually have to downgrade to 1.26.4 which was the version working for me earlier. But I don't get the new fixes when I upgrade this way.
Is there some other way to get the new fixes?
we have to make a new pypi release first for pip install chgnet
to contain the fixes. in the meantime, you would have to build from source by git cloning
and running python setup.py build_ext --inplace
to manually compile (see test.yml#L39)
Email (Optional)
n.k.mohandas@tudelft.nl
Version
v0.3.8
Which OS(es) are you using?
What happened?
KeyError: 'decay_fraction'
. The code snippet I use to load the checkpoint isfrom chgnet.trainer import Trainer from chgnet.model import CHGNet
def load_trainer(trainer_path: Path): """Load the trainer from the path"""
load the trainer
if name == "main": file_path = '/output/epoch4_e0_f0_sNA_mNA.pth.tar' trainer = load_trainer(file_path)
Log output
Code of Conduct