Update preprocessor_config.json to use image_processor_type
Browse filesThis pull request addresses a warning message that appears when using the `nlpconnect/vit-gpt2-image-captioning` model. The warning suggests updating the `preprocessor_config.json` file to use `image_processor_type` instead of `feature_extractor_type`.
Changes made:
- Renamed `feature_extractor_type` to `image_processor_type` in `preprocessor_config.json`.
This change should help to align the model's configuration with the latest practices in the `transformers` library and remove the warning message for users of the model.
- preprocessor_config.json +1 -1
preprocessor_config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"do_normalize": true,
|
3 |
"do_resize": true,
|
4 |
-
"
|
5 |
"image_mean": [
|
6 |
0.5,
|
7 |
0.5,
|
|
|
1 |
{
|
2 |
"do_normalize": true,
|
3 |
"do_resize": true,
|
4 |
+
"image_processor_type": "ViTFeatureExtractor",
|
5 |
"image_mean": [
|
6 |
0.5,
|
7 |
0.5,
|