~jochen/Origami-Classify

f793bfe98aea48e68b047a68153b4e0b66e81ece — Jochen 2 months ago bfff626
added instructions for training and using custom TF Lite model
1 files changed, 18 insertions(+), 2 deletions(-)

M README.md
M README.md => README.md +18 -2
@@ 119,5 119,21 @@ This will copy all the files from the *Origami-Classify* folder to your *OS-clas
### 20. Adventure Time !!! (❍ᴥ❍ʋ)


## To-Do:
- add tutorial for training and using custom TFlite models
\ No newline at end of file
## Training and using your own model:
- Visit [teachablemachine.withgoogle.com/train/image](https://teachablemachine.withgoogle.com/train/image)
- Create and train your own classifier model
- Export and download your model as TensorFlow Lite (Quantized)
- Unzip the downloaded file (converted_tflite_quantized.zip)
- the unzipped folder contains two files

| converted_tflite_quantized folder |
| --------------------------------- |
| model.tflite                      | 
| labels.txt                        |

- Put these two files into your Origami-Classify project folder
- Open classify.py in the texteditor of your choice
- Edit model_path to point to your model.tflite (line 54)
- Edit label_path to point to your labels.txt
- *Example: model_path = "model.tflite" , label_path = "labels.txt" * 
- Perform step 17. to 20. again to test your own model in your Origami sketch
\ No newline at end of file