cdvae
cdvae copied to clipboard
evaluate.py error
The first question is whether I should run python scripts/evaluate.py --model_path MODEL_PATH --tasks recon gen opt or python scripts/evaluate.py --model_path MODEL_PATH --tasks recon gen opt model.predict_property=True when generating materials. Which one is correct? I trained the model with model.predict_property=True option.
The second question is about the model path. In my directory, both the checkpoint file and the hparams file are clearly present, but I'm getting an error saying they can't be read. When I set the model path to the model file, this error occurred.
/cdvae/HYDRA/singlerun/2025-02-20/250219-docker-gpu01-mp20 # ls
'epoch=464-step=49290-last.ckpt' 'epoch=594-step=63070-last.ckpt' 'epoch=774-step=82150-last.ckpt' 'epoch=809-step=85860-last.ckpt' lattice_scaler.pt run.log
'epoch=589-step=62540-last.ckpt' 'epoch=749-step=79500-last.ckpt' 'epoch=774-step=82150.ckpt' hparams.yaml prop_scaler.pt wandb
/cdvae python -W ignore scripts/evaluate.py \
--model_path /cdvae/HYDRA/singlerun/2025-02-20/250219-docker-gpu01-mp20/epoch=774-step=82150-last.ckpt
--tasks recon gen opt
Traceback (most recent call last):
File "/cdvae/scripts/evaluate.py", line 280, in
To fix this, I set the model path to the directory name instead of the model file, but then I got the following error:
/cdvae # python scripts/evaluate.py \
--model_path /cdvae/HYDRA/singlerun/2025-02-20/250219-docker-gpu01-mp20/
--tasks recon gen opt
/root/miniconda3/envs/cdvae/lib/python3.9/site-packages/hydra/experimental/compose.py:16: UserWarning: hydra.experimental.compose() is no longer experimental. Use hydra.compose()
warnings.warn(
Traceback (most recent call last):
File "/cdvae/scripts/evaluate.py", line 280, in CDVAE.load_from_checkpoint
cannot be called on an instance. Please call it on the class type and make sure the return value is used.
How can I fix the problem? Please answer me.