I meet a problem in the generation process in examples/ggraph/GraphDF:
Traceback (most recent call last):
File "/cobra/u/gaoh/generate/DIG/examples/ggraph/GraphDF/run_rand_gen.py", line 41, in <module>
mols, pure_valids = runner.run_rand_gen(conf['model'], args.model_path, args.num_mols, conf['num_min_node'], conf['num_max_node'], conf['temperature'], conf['atom_list'])
File "/u/gaoh/conda-envs/dig/lib/python3.9/site-packages/dig/ggraph/method/GraphDF/graphdf.py", line 115, in run_rand_gen
mol, no_resample, num_atoms = self.model.generate(atom_list=atomic_num_list, min_atoms=num_min_node, max_atoms=num_max_node, temperature=temperature)
File "/u/gaoh/conda-envs/dig/lib/python3.9/site-packages/dig/ggraph/method/GraphDF/model/graphflow.py", line 98, in generate
prior_node_dist = torch.distributions.OneHotCategorical(logits=self.node_base_log_probs[i]*temperature[0])
IndexError: index 20 is out of bounds for dimension 0 with size 20
Thank you for pointing out this bug. We find that it is due to an incorrectly configured parameter in examples/ggraph/GraphDf/config/rand_gen_qm9_config_dict.json. We have updated this file.
Dear developers,
I meet a problem in the generation process in
examples/ggraph/GraphDF
:And my input is:
Could you please give me some suggestions?
Best, Hao