Update to feature_extractor_type and reduce_labels due to deprecation notices.


Using transformers 4.37.2 I get the following Warnings:
"Could 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."

Changed the appropriate settings in the preprocessor_config.json and successfully tested it.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment