Instructions to use Yoran-w/mlops-animals-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Yoran-w/mlops-animals-classification with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://Yoran-w/mlops-animals-classification") - Notebooks
- Google Colab
- Kaggle
Download model-conversions.py from Yoran-w/mlops-animals-classification: direct link, hf CLI and curl.
- Browser
- Download file 227 Bytes
-
https://huggingface.co/Yoran-w/mlops-animals-classification/resolve/main/model-conversions.py
- Command line
-
hf download hf://Yoran-w/mlops-animals-classification/model-conversions.py
-
curl -L -o model-conversions.py https://huggingface.co/Yoran-w/mlops-animals-classification/resolve/main/model-conversions.py
227 Bytes
| from tensorflow import keras | |
| import os | |
| model_path = os.path.join("animal-classification", "INPUT_model_path", "animal-cnn", "model.keras") | |
| model = keras.models.load_model(model_path) | |
| model.save("unpacked_keras", zipped=False) |