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
Metadata
Release files for keras-flower 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| keras_flower-0.3.tar.gz | 2.9 kB | Without provenance | Details for keras_flower-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| keras_flower-0.3-py3-none-any.whl | Python 3 | none | any | Details for keras_flower-0.3-py3-none-any.whl |
Total release size: 5.9 kB
Release files / keras_flower-0.3.tar.gz
| Download URL | keras_flower-0.3.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0dd242848643a9c45b7a300199406fb3ec218e680f627c83f8403c1d090d74b9
|
|
BLAKE2b-256 checksum How to use checksums |
d3d6c843f6be00d74934fa6c8559620899f6cf3160768a4c19af9d14701ff1e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / keras_flower-0.3-py3-none-any.whl
| Download URL | keras_flower-0.3-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1a4a5473fef03e2f0d20b7e1a3f0712f98c3503c4c8f47987a4d4ca37e8ffd4
|
|
BLAKE2b-256 checksum How to use checksums |
b65c52eb11fb713c0dde20378f57a5426e86655d481997eea60bfe0c4e92535e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for keras-flower 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.