DiffDock
DiffDock copied to clipboard
RuntimeError: object has no attribute sparse_csc_tensor:
It seems there is an error which I cannot resolve. Is there maybe a workaround on this matter that I could try? Thank you.
Input
python -m inference --protein_ligand_csv data/protein_ligand_example_csv.csv --out_dir results/user_predictions_small --inference_steps 20 --samples_per_complex 40 --batch_size 10 --actual_steps 18 --no_final_step_noise
Output
Traceback (most recent call last):
File "/home/lbilic/anaconda3/envs/diffdock/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/lbilic/anaconda3/envs/diffdock/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/lbilic/DiffDock/inference.py", line 10, in
return torch.sparse_csc_tensor(colptr, row, value, self.sizes())
~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
System WSL2 Ubuntu22:
nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Tue_May__3_18:49:52_PDT_2022 Cuda compilation tools, release 11.7, V11.7.64 Build cuda_11.7.r11.7/compiler.31294372_0
Python 3.9.17 (main, Jul 5 2023, 20:41:20) [GCC 11.2.0] :: Anaconda, Inc. on linux
NVIDIA-SMI 535.54.04 Driver Version: 536.25 CUDA Version: 12.2
Same
Hi,
This error occurs at from torch_geometric.loader import DataLoader
so it must be a problem with (the installation of) PyTorch Geometric and its related packages. My recommendation is to uninstall these packages or directly use a new environment, download the version of Pytorch that is relevant to your cuda version, and then download the version of pytorch geometric for the same cuda version. If the error persists I recommend trying to raise an issue on the pytorch geometric repo as they might be able to help further.
I hope this helps, Gabriele
I had the same error as you. And I solved the error by downlgrading the torch-sparse's vertion to 0.6.14. You could have a try:)
I had the same error as you. And I solved the error by downlgrading the torch-sparse's vertion to 0.6.14. You could have a try:)
Thanks, it's helpful for me.