Upload processor
Browse files- preprocessor_config.json +26 -0
- processor_config.json +4 -0
- special_tokens_map.json +21 -3
- tokenizer_config.json +1 -0
preprocessor_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_convert_rgb": true,
|
3 |
+
"do_image_splitting": false,
|
4 |
+
"do_normalize": true,
|
5 |
+
"do_pad": true,
|
6 |
+
"do_rescale": true,
|
7 |
+
"do_resize": true,
|
8 |
+
"image_mean": [
|
9 |
+
0.5,
|
10 |
+
0.5,
|
11 |
+
0.5
|
12 |
+
],
|
13 |
+
"image_processor_type": "Idefics2ImageProcessor",
|
14 |
+
"image_std": [
|
15 |
+
0.5,
|
16 |
+
0.5,
|
17 |
+
0.5
|
18 |
+
],
|
19 |
+
"processor_class": "Idefics2Processor",
|
20 |
+
"resample": 2,
|
21 |
+
"rescale_factor": 0.00392156862745098,
|
22 |
+
"size": {
|
23 |
+
"longest_edge": 980,
|
24 |
+
"shortest_edge": 378
|
25 |
+
}
|
26 |
+
}
|
processor_config.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"image_seq_len": 64,
|
3 |
+
"processor_class": "Idefics2Processor"
|
4 |
+
}
|
special_tokens_map.json
CHANGED
@@ -1,8 +1,26 @@
|
|
1 |
{
|
2 |
"additional_special_tokens": [
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
],
|
7 |
"bos_token": {
|
8 |
"content": "<s>",
|
|
|
1 |
{
|
2 |
"additional_special_tokens": [
|
3 |
+
{
|
4 |
+
"content": "<fake_token_around_image>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"content": "<image>",
|
12 |
+
"lstrip": false,
|
13 |
+
"normalized": false,
|
14 |
+
"rstrip": false,
|
15 |
+
"single_word": false
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"content": "<end_of_utterance>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": false,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
}
|
24 |
],
|
25 |
"bos_token": {
|
26 |
"content": "<s>",
|
tokenizer_config.json
CHANGED
@@ -58,6 +58,7 @@
|
|
58 |
],
|
59 |
"bos_token": "<s>",
|
60 |
"clean_up_tokenization_spaces": false,
|
|
|
61 |
"eos_token": "</s>",
|
62 |
"legacy": false,
|
63 |
"model_max_length": 1000000000000000019884624838656,
|
|
|
58 |
],
|
59 |
"bos_token": "<s>",
|
60 |
"clean_up_tokenization_spaces": false,
|
61 |
+
"do_image_splitting": false,
|
62 |
"eos_token": "</s>",
|
63 |
"legacy": false,
|
64 |
"model_max_length": 1000000000000000019884624838656,
|