ensaimado commited on
Commit
f284be1
1 Parent(s): dc68f91

Update preprocessor_config.json to use image_processor_type

Browse files

This 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.

Files changed (1) hide show
  1. preprocessor_config.json +1 -1
preprocessor_config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "do_normalize": true,
3
  "do_resize": true,
4
- "feature_extractor_type": "ViTFeatureExtractor",
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,