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

Abstract Class Error Message #24

Open
AhmadHammad21 opened this issue Jun 12, 2023 · 6 comments
Open

Abstract Class Error Message #24

AhmadHammad21 opened this issue Jun 12, 2023 · 6 comments

Comments

@AhmadHammad21
Copy link

When I run either the pretraining or fine-tuning files, I get this error.
Traceback (most recent call last):
File "molclr.py", line 199, in
main()
File "molclr.py", line 195, in main
molclr.train()
File "molclr.py", line 70, in train
train_loader, valid_loader = self.dataset.get_data_loaders()
File "C:\Users\user\Desktop\Skin Permeation\MolCLR\dataset\dataset.py", line 162, in get_data_loaders
train_dataset = MoleculeDataset(data_path=self.data_path)
File "C:\Users\user\anaconda3\envs\molclr\lib\typing.py", line 819, in new
obj = super().new(cls)
TypeError: Can't instantiate abstract class MoleculeDataset with abstract methods get, len

@danielkaifeng
Copy link

I have the same issue, I suspect this is related to the version of torch-geometry.
This is my torch version:
torch 2.0.1
torch-geometric 2.3.1
torch-scatter 2.1.1+pt20cu117
torchvision 0.15.2

@dn-code-dev
Copy link

I have the same issue as well. Have you solved this?

@danielkaifeng
Copy link

yes, I reinstall the whole env according to README, it works for me now.

torch                 1.7.1+cu110
torch-geometric       1.6.3
torch-scatter         2.0.6
torch-sparse          0.6.9
torchvision           0.8.2+cu110

@AhmadHammad21
Copy link
Author

This is my torch version
torch 1.13.1
torch-geometric 2.3.1
torch-scatter 2.1.1+pt113cu117
torch-sparse 0.6.17+pt113cu117
torchaudio 0.13.1
torchvision 0.14.1.

also I tried the env in README, and it still doesn't work too...

@AhmadHammad21
Copy link
Author

@danielkaifeng can you send me the all commands you used?, I have cuda 11.7
I'm following the same instructions, I keep getting the same.

I really appreciate that

@danielkaifeng
Copy link

I just copied and pasted commands from REAMDE.

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