ValueError: Unrecognized feature extractor in microsoft/trocr-base-handwritten. Should have a `feature_extractor_type` key in its preprocessor_config.json of config.json, or one of the following `model_type` keys in its {CONFIG_NAME}: {', '.join(c for c in FEATURE_EXTRACTOR_MAPPING_NAMES.keys())}
#7
by
ram1813
- opened
- preprocessor_config.json +1 -1
preprocessor_config.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
"do_center_crop": false,
|
4 |
"do_normalize": true,
|
5 |
"do_resize": true,
|
6 |
-
"
|
7 |
"image_mean": [
|
8 |
0.5,
|
9 |
0.5,
|
|
|
3 |
"do_center_crop": false,
|
4 |
"do_normalize": true,
|
5 |
"do_resize": true,
|
6 |
+
"feature_extractor_type": "DeiTImageProcessor",
|
7 |
"image_mean": [
|
8 |
0.5,
|
9 |
0.5,
|