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

Update inference.py #195

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ def main(args):
def inference_multimer_model(args):
print("running in multimer mode...")
config = model_config(args.model_name)

use_small_bfd = args.preset == 'reduced_dbs' # (args.bfd_database_path is None)
if use_small_bfd:
assert args.bfd_database_path is not None
else:
assert args.bfd_database_path is not None
assert args.uniref30_database_path is not None

predict_max_templates = 4

Expand All @@ -195,7 +202,7 @@ def inference_multimer_model(args):
uniref30_database_path=args.uniref30_database_path,
uniprot_database_path=args.uniprot_database_path,
pdb_seqres_database_path=args.pdb_seqres_database_path,
use_small_bfd=(args.bfd_database_path is None),
use_small_bfd=use_small_bfd,
no_cpus=args.cpus
)
else:
Expand All @@ -210,7 +217,7 @@ def inference_multimer_model(args):
uniref30_database_path=args.uniref30_database_path,
uniprot_database_path=args.uniprot_database_path,
pdb_seqres_database_path=args.pdb_seqres_database_path,
use_small_bfd=(args.bfd_database_path is None),
use_small_bfd=use_small_bfd,
no_cpus=args.cpus
)
else:
Expand Down