ketatam / DiffDock-PP

Implementation of DiffDock-PP: Rigid Protein-Protein Docking with Diffusion Models in PyTorch (ICLR 2023 - MLDD Workshop)
https://arxiv.org/abs/2304.03889
195 stars 38 forks source link

Error when running the single_pair_inference example #24

Open ahof1704 opened 10 months ago

ahof1704 commented 10 months ago

Hi,

I am getting the following error when running the inference example using the two provided pdb files:

Traceback (most recent call last):
  File "/root/DiffDock-PP/src/main_inf.py", line 620, in <module>
    main()
  File "/root/DiffDock-PP/src/main_inf.py", line 339, in main
    pred_list = evaluate_confidence(model_confidence,samples_loader,args) # TODO -> maybe list inside
  File "/root/DiffDock-PP/src/main_inf.py", line 61, in evaluate_confidence
    pred = model(data)
  File "/opt/mamba/envs/diffdock_pp/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
    return forward_call(*input, **kwargs)
  File "/root/DiffDock-PP/src/model/model.py", line 84, in forward
    logits = self.encoder(batch)
  File "/opt/mamba/envs/diffdock_pp/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
    return forward_call(*input, **kwargs)
  File "/root/DiffDock-PP/src/model/diffusion.py", line 279, in forward
    tr_t = batch.complex_t["tr"]
  File "/opt/mamba/envs/diffdock_pp/lib/python3.10/site-packages/torch_geometric/data/hetero_data.py", line 156, in __getattr__
    raise AttributeError(f"'{self.__class__.__name__}' has no "
AttributeError: 'HeteroDataBatch' has no attribute 'complex_t'

Any ideas on what could be causing the problem?

Potentially relevant info: I am running this code in CPU only for now. So I commented out all the sections that were assigning the model or data to cuda.

Thanks!