Instructions to use AbdulElahGwaith/transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AbdulElahGwaith/transformers with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AbdulElahGwaith/transformers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download docs/source/zh/main_classes/feature_extractor.md from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/zh/main_classes/feature_extractor.md
- Command line
-
hf download hf://AbdulElahGwaith/transformers/docs/source/zh/main_classes/feature_extractor.md
-
curl -L -o feature_extractor.md https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/zh/main_classes/feature_extractor.md
1.44 kB
Feature Extractor
Feature Extractor负责为音频或视觉模型准备输入特征。这包括从序列中提取特征,例如,对音频文件进行预处理以生成Log-Mel频谱特征,以及从图像中提取特征,例如,裁剪图像文件,同时还包括填充、归一化和转换为NumPy、PyTorch和TensorFlow张量。
FeatureExtractionMixin
[[autodoc]] feature_extraction_utils.FeatureExtractionMixin - from_pretrained - save_pretrained
SequenceFeatureExtractor
[[autodoc]] SequenceFeatureExtractor - pad
BatchFeature
[[autodoc]] BatchFeature
ImageFeatureExtractionMixin
[[autodoc]] image_utils.ImageFeatureExtractionMixin