Feature Extraction
Transformers
Safetensors
English
remote-sensing
earth-observation
vision
dofa
sentinel-2
multimodal
Instructions to use BiliSakura/DOFA-transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BiliSakura/DOFA-transformers with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="BiliSakura/DOFA-transformers")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("BiliSakura/DOFA-transformers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download dofa-base-patch16-224/preprocessor_config.json from BiliSakura/DOFA-transformers: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/BiliSakura/DOFA-transformers/resolve/main/dofa-base-patch16-224/preprocessor_config.json
- Command line
-
hf download hf://BiliSakura/DOFA-transformers/dofa-base-patch16-224/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/BiliSakura/DOFA-transformers/resolve/main/dofa-base-patch16-224/preprocessor_config.json
700 Bytes
| { | |
| "image_processor_type": "DOFAImageProcessor", | |
| "size": { | |
| "height": 224, | |
| "width": 224 | |
| }, | |
| "do_resize": false, | |
| "do_rescale": true, | |
| "do_normalize": true, | |
| "do_convert_rgb": false, | |
| "rescale_factor": 0.00392156862745098, | |
| "auto_map": { | |
| "AutoImageProcessor": "image_processing_dofa.DOFAImageProcessor" | |
| }, | |
| "default_wavelengths": [ | |
| 0.665, | |
| 0.56, | |
| 0.49, | |
| 0.705, | |
| 0.74, | |
| 0.783, | |
| 0.842, | |
| 1.61, | |
| 2.19 | |
| ], | |
| "image_mean": [ | |
| 114.11, | |
| 114.82, | |
| 126.64, | |
| 84.34, | |
| 97.85, | |
| 103.94, | |
| 101.44, | |
| 72.33, | |
| 56.67 | |
| ], | |
| "image_std": [ | |
| 77.84, | |
| 69.97, | |
| 67.42, | |
| 64.57, | |
| 61.73, | |
| 61.34, | |
| 60.3, | |
| 47.89, | |
| 42.56 | |
| ] | |
| } | |