Instructions to use gatilin/north-micro-vision-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gatilin/north-micro-vision-encoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="gatilin/north-micro-vision-encoder")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("gatilin/north-micro-vision-encoder") model = AutoModelForMultimodalLM.from_pretrained("gatilin/north-micro-vision-encoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from gatilin/north-micro-vision-encoder: direct link, hf CLI and curl.
- Browser
- Download file 747 Bytes
-
https://huggingface.co/gatilin/north-micro-vision-encoder/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://gatilin/north-micro-vision-encoder/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/gatilin/north-micro-vision-encoder/resolve/main/preprocessor_config.json
747 Bytes
| { | |
| "crop_size": null, | |
| "data_format": "channels_first", | |
| "default_to_square": false, | |
| "device": null, | |
| "disable_grouping": null, | |
| "do_center_crop": null, | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_pad": null, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "input_data_format": null, | |
| "merge_size": 2, | |
| "pad_size": null, | |
| "patch_size": 16, | |
| "processor_class": "CohereCompassProcessor", | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "return_tensors": null, | |
| "size": { | |
| "longest_edge": 16777216, | |
| "shortest_edge": 65536 | |
| }, | |
| "temporal_patch_size": 2, | |
| "image_processor_type": "CohereCompassImageProcessor" | |
| } | |