10000 failed to import pipeline · Issue #57 · impira/docquery · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

failed to import pipeline #57

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

Open
theobouwman opened this issue Jan 3, 2023 · 2 comments
Open

failed to import pipeline #57

theobouwman opened this issue Jan 3, 2023 · 2 comments

Comments

@theobouwman
Copy link
from docquery import document, pipeline

gets me

Failed to import docquery.transformers_patch because of the following error (look up to see its traceback):
Failed to import transformers.pipelines because of the following error (look up to see its traceback):
cannot import name 'AutoModelForDepthEstimation' from 'transformers.models.auto.modeling_auto' (/Users/theobouwman/dev/projects/test/venv/lib/python3.10/site-packages/transformers/models/auto/modeling_auto.py)
@logan-markewich
Copy link

Seems like an issue with the transformers version. Try upgrading to 4.24.

The reqs say >=4.23, but I don't see AutoModelForDepthEstimation in 4.23

@jiluojiluo
Copy link
jiluojiluo commented Feb 13, 2023
from docquery import document, pipeline

gets me

Failed to import docquery.transformers_patch because of the following error (look up to see its traceback):
Failed to import transformers.pipelines because of the following error (look up to see its traceback):
cannot import name 'AutoModelForDepthEstimation' from 'transformers.models.auto.modeling_auto' (/Users/theobouwman/dev/projects/test/venv/lib/python3.10/site-packages/transformers/models/auto/modeling_auto.py)

when I upgrate the transformers to 4.26, "from docquery import document, pipeline" this code works, YES.

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
0