Custom feature extractor (#15630)

* Rework AutoFeatureExtractor.from_pretrained internal

* Custom feature extractor

* Add more tests

* Add support for custom feature extractor code

* Clean up
This commit is contained in:
Sylvain Gugger
2022-02-11 16:43:54 -05:00
committed by GitHub
parent fcb0f74397
commit 7a32e4722f
5 changed files with 239 additions and 22 deletions

View File

@@ -0,0 +1,5 @@
from transformers import Wav2Vec2FeatureExtractor
class CustomFeatureExtractor(Wav2Vec2FeatureExtractor):
pass