Open psologub opened 3 weeks ago
transformers
@ArthurZucker @amyeroberts @qubv
examples
!pip install torch !pip install transformers import requests from PIL import Image import torch from transformers import AutoProcessor, AutoModelForImageTextToText
The error message:
ImportError Traceback (most recent call last) [<ipython-input-5-af84153c3b01>](https://localhost:8080/#) in <cell line: 4>() 2 from PIL import Image 3 import torch ----> 4 from transformers import AutoProcessor, AutoModelForImageTextToText ImportError: cannot import name 'AutoModelForImageTextToText' from 'transformers' (/usr/local/lib/python3.10/dist-packages/transformers/__init__.py)
I've tried to follow this example but I get stuck importing AutoModelForImageTextToText. Could you help me out please?
Hey! That is because you are looking at the main documentation! This feature was shipped in #29572 which is not part of the latest release! 🤗
main
System Info
transformers
version: 4.44.2Who can help?
@ArthurZucker @amyeroberts @qubv
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
The error message:
Expected behavior
I've tried to follow this example but I get stuck importing AutoModelForImageTextToText. Could you help me out please?