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
File size: 1,080 Bytes
a853082 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | {
"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
}
} |