Instructions to use MITCriticalData/Sentinel-2_ViT_Autoencoder_RGB_full_Colombia_Dataset with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use MITCriticalData/Sentinel-2_ViT_Autoencoder_RGB_full_Colombia_Dataset with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://MITCriticalData/Sentinel-2_ViT_Autoencoder_RGB_full_Colombia_Dataset") - Notebooks
- Google Colab
- Kaggle
Commit ·
bd9bee9
1
Parent(s): 51f2ec8
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,6 +11,18 @@ The model was trained using bands RGB (2, 3 and 4) (Red, Green and Blue) of the
|
|
| 11 |
|
| 12 |
The input shape of the model is 224, 224, 3. To extract features you should remove the last layer.
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
## Intended uses & limitations
|
| 15 |
|
| 16 |
The model was trained with images of 81 different cities in Colombia, however it may require fine tuning or retraining to learn from other contexts such as countries and other continents.
|
|
|
|
| 11 |
|
| 12 |
The input shape of the model is 224, 224, 3. To extract features you should remove the last layer.
|
| 13 |
|
| 14 |
+
The model can be read as (example in jupyer):
|
| 15 |
+
"""
|
| 16 |
+
!git lfs install
|
| 17 |
+
!git clone https://huggingface.co/MITCriticalData/Sentinel-2_ViT_Autoencoder_RGB_full_Colombia_Dataset
|
| 18 |
+
|
| 19 |
+
import tensorflow as tf
|
| 20 |
+
from transformers import TFViTModel
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
model = tf.keras.models.load_model('Sentinel-2_ViT_Autoencoder_RGB_full_Colombia_Dataset', custom_objects={"TFViTModel": TFViTModel})
|
| 24 |
+
"""
|
| 25 |
+
|
| 26 |
## Intended uses & limitations
|
| 27 |
|
| 28 |
The model was trained with images of 81 different cities in Colombia, however it may require fine tuning or retraining to learn from other contexts such as countries and other continents.
|