Skip to content

replace AutoFeatureExtractor with AutoImageProcessor in docs#8200

Open
ajaystar8 wants to merge 1 commit into
huggingface:mainfrom
ajaystar8:preprocess-doc-fix
Open

replace AutoFeatureExtractor with AutoImageProcessor in docs#8200
ajaystar8 wants to merge 1 commit into
huggingface:mainfrom
ajaystar8:preprocess-doc-fix

Conversation

@ajaystar8
Copy link
Copy Markdown

Closes #8199

What does this PR do?

Replaces AutoFeatureExtractor with AutoImageProcessor in the image augmentation example in docs/source/use_dataset.mdx. For vision models, AutoImageProcessor is the recommended API and better reflects current transformers conventions.

This is consistent with the direction taken in the transformers library itself — see PR #20111 and PR #20501, where vision feature extractor references were systematically replaced with image processors across the transformers codebase and documentation. The datasets docs were not in scope for that PR, making this a natural follow-up.


```py
>>> from transformers import AutoFeatureExtractor
>>> from transformers import AutoImageProcessor
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good update! This aligns with the AutoImageProcessor migration
in the transformers library. The variable rename from
feature_extractor to image_processor also improves clarity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace AutoFeatureExtractor with AutoImageProcessor in image preprocessing docs

2 participants