Instructions to use google/pix2struct-textcaps-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/pix2struct-textcaps-base with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="google/pix2struct-textcaps-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("google/pix2struct-textcaps-base") model = AutoModelForMultimodalLM.from_pretrained("google/pix2struct-textcaps-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#5)
- Adding `safetensors` variant of this model (1c2a1490d5b0b1e92325f2dc26fcb6ed62e34630) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>61bee0d
-
Update README.md
1977c83
-
Update config.json (#4)
- Update config.json (510c6aa4b4b50e82fbcc2d6c808ed659e99bc9a5)b10e64f
-
Update config.json
29d6af1
-
Update README.md
886d71f
-
Update README.md
724af6f -
Update README.md
f884dd7 -
Update README.md
c7c9c44 -
Update README.md
0d78262 -
Create README.md
ce7a82c
-
Update tokenizer_config.json
8bdba8c -
Update config.json
7a68a7c -
Update tokenizer_config.json
ee3547e -
Update preprocessor_config.json
89206b7 -
Update preprocessor_config.json
2769741 -
Update preprocessor_config.json
9162635
-
Upload Pix2StructForConditionalGeneration
b1bd5ae -
Upload Pix2StructForConditionalGeneration
e4aafad -
Upload Pix2StructForConditionalGeneration
e795e01
-
Upload processor
5ed5581 -
Upload Pix2StructForConditionalGeneration
7be68ac -
Upload processor
06e4e67 -
Upload Pix2StructForConditionalGeneration
b067a48 -
initial commit
Younes Belkada80a11d3