Skip to content

A simple flower classification 💮 python library

Notifications You must be signed in to change notification settings

bhachauk/keras_flower

Repository files navigation

Keras Flower

status coverage

A Simple Flower classification package using DenseNet201.

Usage

  • Use pip install to install this package
pip install keras_flower
  • To get all prediction results
import keras_flower as kf
predictions = kf.predict_by_path("file/to/predict.png")
print(predictions)

Sample output:

[1.4414026e-06 1.6031330e-06 1.6295390e-06 1.1156463e-06 2.7592062e-06
...
 1.1587109e-06 4.1556059e-06 1.0784672e-05 6.0254356e-06]
import keras_flower as kf
for predicted, score in kf.predict_name_by_path("/path/to/file.png"):
    print(predicted, score)

Sample output:

sunflower 0.99960905

Validation

                           precision    recall  f1-score   support
                micro avg       0.97      0.97      0.97      8189
                macro avg       0.95      0.94      0.94      8189
             weighted avg       0.97      0.97      0.97      8189

Demo

demo