Image-Text-to-Text
Transformers.js
ONNX
florence2
vision
text-generation
text2text-generation
image-to-text
Instructions to use onnx-community/Florence-2-base-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/Florence-2-base-ft with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-text-to-text', 'onnx-community/Florence-2-base-ft');
Download generation_config.json from onnx-community/Florence-2-base-ft: direct link, hf CLI and curl.
- Browser
- Download file 292 Bytes
-
https://huggingface.co/onnx-community/Florence-2-base-ft/resolve/dc537751755f939710e3841954bd7ad5ad006eb9/generation_config.json
- Command line
-
hf download hf://onnx-community/Florence-2-base-ft@dc537751755f939710e3841954bd7ad5ad006eb9/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/onnx-community/Florence-2-base-ft/resolve/dc537751755f939710e3841954bd7ad5ad006eb9/generation_config.json
292 Bytes
| { | |
| "_from_model_config": true, | |
| "bos_token_id": 2, | |
| "decoder_start_token_id": 2, | |
| "early_stopping": true, | |
| "eos_token_id": 1, | |
| "forced_bos_token_id": 0, | |
| "forced_eos_token_id": 2, | |
| "no_repeat_ngram_size": 3, | |
| "num_beams": 3, | |
| "pad_token_id": 0, | |
| "transformers_version": "4.38.2" | |
| } | |