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/image_processor.md from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/zh/main_classes/image_processor.md
- Command line
-
hf download hf://AbdulElahGwaith/transformers/docs/source/zh/main_classes/image_processor.md
-
curl -L -o image_processor.md https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/zh/main_classes/image_processor.md
1.29 kB
Image Processor
Image processor负责为视觉模型准备输入特征并后期处理处理它们的输出。这包括诸如调整大小、归一化和转换为PyTorch和NumPy张量等转换。它还可能包括特定于模型的后期处理,例如将logits转换为分割掩码。
ImageProcessingMixin
[[autodoc]] image_processing_utils.ImageProcessingMixin - from_pretrained - save_pretrained
BatchFeature
[[autodoc]] BatchFeature
BaseImageProcessor
[[autodoc]] image_processing_utils.BaseImageProcessor