Instructions to use nina357/flower-classification-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use nina357/flower-classification-model 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://nina357/flower-classification-model") - Notebooks
- Google Colab
- Kaggle
Download config.json from nina357/flower-classification-model: direct link, hf CLI and curl.
- Browser
- Download file 942 Bytes
-
https://huggingface.co/nina357/flower-classification-model/resolve/main/config.json
- Command line
-
hf download hf://nina357/flower-classification-model/config.json
-
curl -L -o config.json https://huggingface.co/nina357/flower-classification-model/resolve/main/config.json
942 Bytes
| { | |
| "model_type": "mobilenetv2", | |
| "framework": "tensorflow_keras", | |
| "version": "1.0.0", | |
| "experiment_name": "Flower_Classification_DAI6", | |
| "run_name": "mobilenetv2_cloudrun_20261119_164117", | |
| "run_id": "6f98c81fa5004efea16abaf9380e844d", | |
| "git_commit": "unknown", | |
| "dvc_train_md5": "235f64464dd00d915b94589effb1cda8.dir", | |
| "num_classes": 5, | |
| "classes": [ | |
| "daisy", | |
| "dandelion", | |
| "roses", | |
| "sunflowers", | |
| "tulips" | |
| ], | |
| "input_shape": [ | |
| 180, | |
| 180, | |
| 3 | |
| ], | |
| "pooling": "avg", | |
| "dense_units": 512, | |
| "dropout_rate": 0.3, | |
| "trainable_base": true, | |
| "activation": "softmax", | |
| "optimizer": "adam", | |
| "learning_rate": 0.0001, | |
| "loss": "sparse_categorical_crossentropy", | |
| "epochs": 3, | |
| "batch_size": 32, | |
| "metrics": [ | |
| "accuracy" | |
| ], | |
| "final_val_accuracy": 0.9636808633804321, | |
| "final_val_loss": 0.12456674873828888, | |
| "best_val_accuracy": 0.9636808633804321, | |
| "weights_file": "flower_model.keras" | |
| } |