您好,非常感谢您的KGDiff模型。KGDiff模型将利用梯度引导分子的生成过程,非常有趣,而且作用非常明显。
当我在尝试复现分子过程,在运行github中
“python scripts/sample_diffusion.py --config ./configs/sampling.yml -i 0 --guide_mode joint --type_grad_weight 100 --pos_grad_weight 25 --result_path ./cd2020_pro_0_res”时,
出现如下报错:
File "/home/KGDiff-main/scripts/sample_diffusion.py", line 134, in sample_diffusion_ligand
all_pred_exp_traj = torch.stack(all_pred_exp_traj,dim=0).numpy()
RuntimeError: stack expects each tensor to be equal size, but got [4] at entry 0 and [2] at entry 2000
可以请教一下这是哪里的问题吗?该如何修正?
您好,非常感谢您的KGDiff模型。KGDiff模型将利用梯度引导分子的生成过程,非常有趣,而且作用非常明显。
当我在尝试复现分子过程,在运行github中
“python scripts/sample_diffusion.py --config ./configs/sampling.yml -i 0 --guide_mode joint --type_grad_weight 100 --pos_grad_weight 25 --result_path ./cd2020_pro_0_res”时,
出现如下报错:
File "/home/KGDiff-main/scripts/sample_diffusion.py", line 134, in sample_diffusion_ligand
all_pred_exp_traj = torch.stack(all_pred_exp_traj,dim=0).numpy()
RuntimeError: stack expects each tensor to be equal size, but got [4] at entry 0 and [2] at entry 2000
可以请教一下这是哪里的问题吗?该如何修正?