Upload processor
Browse files- preprocessor_config.json +23 -0
- tokenizer_config.json +1 -0
preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_processor_type": "ViTImageProcessor",
|
11 |
+
"image_std": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
+
],
|
16 |
+
"processor_class": "TrOCRProcessor",
|
17 |
+
"resample": 2,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"height": 384,
|
21 |
+
"width": 384
|
22 |
+
}
|
23 |
+
}
|
tokenizer_config.json
CHANGED
@@ -14,6 +14,7 @@
|
|
14 |
},
|
15 |
"model_max_length": 512,
|
16 |
"pad_token": "<pad>",
|
|
|
17 |
"sep_token": "</s>",
|
18 |
"special_tokens_map_file": null,
|
19 |
"tokenizer_class": "RobertaTokenizer",
|
|
|
14 |
},
|
15 |
"model_max_length": 512,
|
16 |
"pad_token": "<pad>",
|
17 |
+
"processor_class": "TrOCRProcessor",
|
18 |
"sep_token": "</s>",
|
19 |
"special_tokens_map_file": null,
|
20 |
"tokenizer_class": "RobertaTokenizer",
|