Instructions to use Xenova/vit-gpt2-image-captioning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/vit-gpt2-image-captioning with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-to-text', 'Xenova/vit-gpt2-image-captioning');
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,8 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
library_name: transformers.js
|
| 3 |
-
pipeline_tag: image-to-text
|
| 4 |
-
tags:
|
| 5 |
-
- image-captioning
|
| 6 |
---
|
| 7 |
|
| 8 |
https://huggingface.co/nlpconnect/vit-gpt2-image-captioning with ONNX weights to be compatible with Transformers.js.
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: "transformers.js"
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
https://huggingface.co/nlpconnect/vit-gpt2-image-captioning with ONNX weights to be compatible with Transformers.js.
|