Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.11 KB

README.md

File metadata and controls

33 lines (22 loc) · 1.11 KB

HelloFlowers

A hello world abridged implementation of the TensorFlow Image Classification tutorial.

There is also a 96% accuracy model trained via GCP AutoML and hosted on GCP Cloud Storage. The forward pass Tensorflow.js implementation is hosted on GitHub Pages.

Installation

Download the flower pictures from Google.

Extract the flower pictures:

tar -xvf flower_photos.tgz

Clone or download flower_weights.data-00000-of-00001 and flower_weights.index.

Clone or download helloflowers.py.

Note: Should go without saying, but just in case: you need to have TensorFlow 2 installed.

Usage

Just run the Python script:

$ python3 helloflowers.py

Found 3670 files belonging to 5 classes.
Using 2936 files for training.
Found 3670 files belonging to 5 classes.
Using 734 files for validation.
23/23 [==============================] - 63s 3s/step - loss: 1.3647 - accuracy: 0.8610