Instructions to use BiliSakura/AnyUp-transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BiliSakura/AnyUp-transformers with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="BiliSakura/AnyUp-transformers")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("BiliSakura/AnyUp-transformers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download anyup-multi-backbone/preprocessor_config.json from BiliSakura/AnyUp-transformers: direct link, hf CLI and curl.
- Browser
- Download file 441 Bytes
-
https://huggingface.co/BiliSakura/AnyUp-transformers/resolve/main/anyup-multi-backbone/preprocessor_config.json
- Command line
-
hf download hf://BiliSakura/AnyUp-transformers/anyup-multi-backbone/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/BiliSakura/AnyUp-transformers/resolve/main/anyup-multi-backbone/preprocessor_config.json
441 Bytes
| { | |
| "image_processor_type": "AnyUpImageProcessor", | |
| "size": { | |
| "height": 224, | |
| "width": 224 | |
| }, | |
| "do_resize": false, | |
| "do_rescale": true, | |
| "rescale_factor": 0.00392156862745098, | |
| "do_normalize": true, | |
| "do_convert_rgb": true, | |
| "image_mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "image_std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "auto_map": { | |
| "AutoImageProcessor": "image_processing_anyup.AnyUpImageProcessor" | |
| } | |
| } | |