Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question about the cdvae #36

Open
szy120320 opened this issue Feb 9, 2023 · 7 comments
Open

A question about the cdvae #36

szy120320 opened this issue Feb 9, 2023 · 7 comments

Comments

@szy120320
Copy link

Excuse me, I'm a first-year graduate student. My programming ability is limited. So I have a question.

  1. I want to know what the MODEL_PATH is. I tried many paths, but none of them worked. this is the hint:
hydra.errors.MissingConfigException: Primary config directory not found.
Check that the config directory '\Users\12032\Desktop\cdvae-main\cdvae\run.py' exists and readable
@szy120320
Copy link
Author

szy120320 commented Feb 14, 2023

Excuse me, I'm a first-year graduate student. My programming ability is limited. So I have a question.

  1. I want to know what the is. I tried many paths, but none of them worked. this is the hint:MODEL_PATH
hydra.errors.MissingConfigException: Primary config directory not found.
Check that the config directory '\Users\12032\Desktop\cdvae-main\cdvae\run.py' exists and readable

I have solved the problem. But I have another problem.

@szy120320
Copy link
Author

this is error information:
AttributeError: 'CrystGNN_Supervise' object has no attribute 'langevin_dynamics'

I find that the attribute 'langevin_dynamics' exists in the CDVAE class, not CrysGNN_Supervise. So How do I solve this problem?

@szy120320
Copy link
Author

@txie-93

@szy120320
Copy link
Author

when I execute the recon command, I ran into a problem:

100%|██████████| 2030/2030 [02:43<00:00, 12.44it/s]
Evaluate model on the reconstruction task.
Traceback (most recent call last):
  File "C:/Users/12032/Desktop/cdvae-main/scripts/evaluate.py", line 281, in <module>
    main(args)
  File "C:/Users/12032/Desktop/cdvae-main/scripts/evaluate.py", line 194, in main
    all_frac_coords_stack, all_atom_types_stack, input_data_batch) = reconstructon(
  File "C:/Users/12032/Desktop/cdvae-main/scripts/evaluate.py", line 38, in reconstructon
    _, _, z = model.encode(batch)
  File "E:\anaconda3\envs\cdvae\lib\site-packages\torch\nn\modules\module.py", line 947, in __getattr__
    raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'CrystGNN_Supervise' object has no attribute 'encode'
batch 0 in 8

@utf
Copy link

utf commented May 3, 2023

Hi @szy120320, did you figure out this problem?

@szy120320
Copy link
Author

Hi @szy120320, did you figure out this problem?

I tried, but it didn't work

@JianZhou711
Copy link

I am probably late and it's already solved, but I worked through it by using the Hydra output from the training instead of prop_models as my model_path which was where I got that error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants