Instructions to use Syahhh01/Stunting_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use Syahhh01/Stunting_model with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy), and from_pretrained_keras was removed in huggingface_hub 1.0. # See https://github.com/keras-team/tf-keras for more details. # !pip install "huggingface_hub<1.0" tf_keras from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("Syahhh01/Stunting_model") - Notebooks
- Google Colab
- Kaggle
Download Model_DenseNet/convert_model.py from Syahhh01/Stunting_model: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/Syahhh01/Stunting_model/resolve/main/Model_DenseNet/convert_model.py
- Command line
-
hf download hf://Syahhh01/Stunting_model/Model_DenseNet/convert_model.py
-
curl -L -o convert_model.py https://huggingface.co/Syahhh01/Stunting_model/resolve/main/Model_DenseNet/convert_model.py
175 Bytes
| import tensorflow as tf | |
| # Load SavedModel | |
| model = tf.keras.models.load_model('.') | |
| # Save sebagai .h5 | |
| model.save('model.h5', save_format='h5') | |
| print("Model converted to .h5") |