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

Protocol esm1b: AttributeError: 'dict' object has no attribute 'startswith' #240

Open
dvonkan opened this issue Nov 22, 2023 · 0 comments
Open

Comments

@dvonkan
Copy link

dvonkan commented Nov 22, 2023

Metadata

key value
version 0.2.3
cuda True

Parameter

key value
type embed
protocol esm1b
reduce False
discard_per_amino_acid_embeddings False

Traceback

Traceback (most recent call last):
  File "**(directory)**.cache/pypoetry/virtualenvs/biotrainer-8s_lNhFR-py3.10/lib/python3.10/site-packages/bio_embeddings/utilities/pipeline.py", line 322, in execute_pipeline_from_config
    stage_output_parameters = stage_runnable(**stage_parameters)
  File "**(directory)**.cache/pypoetry/virtualenvs/biotrainer-8s_lNhFR-py3.10/lib/python3.10/site-packages/bio_embeddings/embed/pipeline.py", line 377, in run
    embedder: EmbedderInterface = embedder_class(**result_kwargs)
  File "**(directory)**.cache/pypoetry/virtualenvs/biotrainer-8s_lNhFR-py3.10/lib/python3.10/site-packages/bio_embeddings/embed/esm_embedder.py", line 39, in __init__
    model, alphabet = load_model_and_alphabet_local(self._options["model_file"])
  File "**(directory)**.cache/pypoetry/virtualenvs/biotrainer-8s_lNhFR-py3.10/lib/python3.10/site-packages/bio_embeddings/embed/esm_embedder.py", line 23, in load_model_and_alphabet_local
    return load_model_and_alphabet_core(model_data, None)
  File "**(directory)**.cache/pypoetry/virtualenvs/biotrainer-8s_lNhFR-py3.10/lib/python3.10/site-packages/esm/pretrained.py", line 190, in load_model_and_alphabet_core
    if model_name.startswith("esm2"):
AttributeError: 'dict' object has no attribute 'startswith'

More info

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

1 participant