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

dropout not available in the pretrained models #8

Open
mojtababahrami opened this issue Aug 7, 2021 · 1 comment
Open

dropout not available in the pretrained models #8

mojtababahrami opened this issue Aug 7, 2021 · 1 comment

Comments

@mojtababahrami
Copy link

When using the pre-trained models (both grover_base.pt and grover_large.pg) and trying to predict fingerprints for bbbp.csv example dataset the following error is raised saying that the args.dropout field is not found in the state['args']:

image

@yuliang0225
Copy link

yuliang0225 commented Aug 31, 2021

I found this Bug. Therefore, I added 2 lines at 36 line in grover/model/models.py.

        if args.backbone == "gtrans" or args.backbone == "dualtrans":
            # dualtrans is the old name.
           ## Add these lines
            if not hasattr(args, "dropout"):
                args.dropout = 0

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

2 participants