Closed xenova closed 7 months ago
Hi @xenova,
This appears to be a config issue from their side. Here is a quick fix.
from transformers import pipeline
from transformers import AutoFeatureExtractor
pipe = pipeline(
task='image-to-text',
model='facebook/nougat-base',
feature_extractor=AutoFeatureExtractor,
)
response = pipe(
'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/nougat_paper.png',
max_new_tokens=20
)
print(response[0].get('generated_text'))
Please let me know if it works for you :)
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
Hi, I would like to work on this issue. Could you please assign it to me?
Hi @avisinghal6 - we don't normally assign issues: people saying they're working on it and open a PR in github or on the hub directly, linking in a comment to the related work.
In this case - you're more than welcome to tackle this!
Thanks, i will work on this issue and update the status in a few days.
feature_extractor
I have a few questions regarding this issue:
Any help is highly appreciated!
Hi,
I looked a bit into this issue and found the problematic line. Opened a PR above.
System Info
transformers
version: 4.36.0.dev0Who can help?
@NielsRogge @Narsil
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Running
results in the following error:
Expected behavior
The model should function properly with the
pipeline
API.