How to use Xenova/deplot with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-text-to-text', 'Xenova/deplot');
dce44bc
1
2
3
4
5
6
7
8
9
10
11
12
13
{ "do_convert_rgb": true, "do_normalize": true, "image_processor_type": "Pix2StructImageProcessor", "is_vqa": true, "max_patches": 2048, "patch_size": { "height": 16, "width": 16 }, "processor_class": "Pix2StructProcessor" }