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 classification_report.json from nina357/flower-classification-model: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/nina357/flower-classification-model/resolve/main/classification_report.json
- Command line
-
hf download hf://nina357/flower-classification-model/classification_report.json
-
curl -L -o classification_report.json https://huggingface.co/nina357/flower-classification-model/resolve/main/classification_report.json
1.08 kB
| { | |
| "daisy": { | |
| "precision": 0.9954407294832827, | |
| "recall": 0.8595800524934383, | |
| "f1-score": 0.9225352112676056, | |
| "support": 762.0 | |
| }, | |
| "dandelion": { | |
| "precision": 0.9666666666666667, | |
| "recall": 0.9926650366748166, | |
| "f1-score": 0.9794933655006032, | |
| "support": 1227.0 | |
| }, | |
| "roses": { | |
| "precision": 0.9798816568047337, | |
| "recall": 0.9419795221843004, | |
| "f1-score": 0.9605568445475638, | |
| "support": 879.0 | |
| }, | |
| "sunflowers": { | |
| "precision": 0.9761658031088083, | |
| "recall": 0.991578947368421, | |
| "f1-score": 0.9838120104438642, | |
| "support": 950.0 | |
| }, | |
| "tulips": { | |
| "precision": 0.9130434782608695, | |
| "recall": 0.9889196675900277, | |
| "f1-score": 0.949468085106383, | |
| "support": 1083.0 | |
| }, | |
| "accuracy": 0.9618445215262191, | |
| "macro avg": { | |
| "precision": 0.9662396668648722, | |
| "recall": 0.9549446452622007, | |
| "f1-score": 0.959173103373204, | |
| "support": 4901.0 | |
| }, | |
| "weighted avg": { | |
| "precision": 0.9635024305463195, | |
| "recall": 0.9618445215262191, | |
| "f1-score": 0.9614435835348597, | |
| "support": 4901.0 | |
| } | |
| } |