Image Feature Extraction
Transformers
Safetensors
motif_vision
feature-extraction
motif
vision-transformer
self-supervised
video
custom_code
Instructions to use Motif-Technologies/Motif-Vision-Encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Motif-Technologies/Motif-Vision-Encoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="Motif-Technologies/Motif-Vision-Encoder", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Motif-Technologies/Motif-Vision-Encoder", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from Motif-Technologies/Motif-Vision-Encoder: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/Motif-Technologies/Motif-Vision-Encoder/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://Motif-Technologies/Motif-Vision-Encoder/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/Motif-Technologies/Motif-Vision-Encoder/resolve/main/preprocessor_config.json
435 Bytes
| { | |
| "image_processor_type": "BitImageProcessor", | |
| "do_resize": true, | |
| "size": { | |
| "shortest_edge": 512 | |
| }, | |
| "do_center_crop": true, | |
| "crop_size": { | |
| "height": 512, | |
| "width": 512 | |
| }, | |
| "do_rescale": true, | |
| "rescale_factor": 0.00392156862745098, | |
| "do_normalize": true, | |
| "image_mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "image_std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "resample": 3, | |
| "do_convert_rgb": true | |
| } |