Keras Flower
A Simple Flower classification package using DenseNet201.
- Classes : 104 classes of flowers
- Training Data Set : Petals to the Metal - Flower Classification on TPU
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]
- To get top prediction result with flower labels
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
- Data set : 102 Category Flower Dataset
- No of images : 8189
- Overall accuracy : 0.9715
- confusion matrix : 102flowers_confusion_matrix.csv
- classification report : 102flowers_classification_report.txt
- classification report summary:
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
keras_flower-0.3.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keras_flower-0.3.tar.gz.
File metadata
- Download URL: keras_flower-0.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dd242848643a9c45b7a300199406fb3ec218e680f627c83f8403c1d090d74b9
|
|
| MD5 |
8d088d28f6937606aec9203a49e01d83
|
|
| BLAKE2b-256 |
d3d6c843f6be00d74934fa6c8559620899f6cf3160768a4c19af9d14701ff1e6
|
File details
Details for the file keras_flower-0.3-py3-none-any.whl.
File metadata
- Download URL: keras_flower-0.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1a4a5473fef03e2f0d20b7e1a3f0712f98c3503c4c8f47987a4d4ca37e8ffd4
|
|
| MD5 |
8e4e4f5079d370015c4707b134505c25
|
|
| BLAKE2b-256 |
b65c52eb11fb713c0dde20378f57a5426e86655d481997eea60bfe0c4e92535e
|