Update to feature_extractor_type and reduce_labels due to deprecation notices.
Browse filesCould not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration. Please open a PR/issue to update `preprocessor_config.json` to use `image_processor_type` instead of `feature_extractor_type`. This warning will be removed in v4.40.
.venv/lib/python3.9/site-packages/transformers/models/segformer/image_processing_segformer.py:101: FutureWarning: The `reduce_labels` parameter is deprecated and will be removed in a future version. Please use `do_reduce_labels` instead.
- preprocessor_config.json +2 -2
preprocessor_config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"do_normalize": true,
|
3 |
"do_resize": true,
|
4 |
-
"
|
5 |
"image_mean": [
|
6 |
0.485,
|
7 |
0.456,
|
@@ -12,7 +12,7 @@
|
|
12 |
0.224,
|
13 |
0.225
|
14 |
],
|
15 |
-
"
|
16 |
"resample": 2,
|
17 |
"size": 1024
|
18 |
}
|
|
|
1 |
{
|
2 |
"do_normalize": true,
|
3 |
"do_resize": true,
|
4 |
+
"image_processor_type": "SegformerImageProcessor",
|
5 |
"image_mean": [
|
6 |
0.485,
|
7 |
0.456,
|
|
|
12 |
0.224,
|
13 |
0.225
|
14 |
],
|
15 |
+
"do_reduce_labels": false,
|
16 |
"resample": 2,
|
17 |
"size": 1024
|
18 |
}
|