https://github.com/nbortolotti/tflitego_examples
tflitego_examples provide examples to use tflitego to use TensorFlow lite in Go. More information about the library: https://github.com/nbortolotti/tflitego
https://github.com/nbortolotti/tflitego_examples
golang golang-examples inference tensorflow tensorflow-examples tensorflowlite tflite
Last synced: 5 months ago
JSON representation
tflitego_examples provide examples to use tflitego to use TensorFlow lite in Go. More information about the library: https://github.com/nbortolotti/tflitego
- Host: GitHub
- URL: https://github.com/nbortolotti/tflitego_examples
- Owner: nbortolotti
- License: apache-2.0
- Created: 2020-12-21T18:32:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-16T15:37:29.000Z (about 4 years ago)
- Last Synced: 2025-01-31T03:13:23.187Z (5 months ago)
- Topics: golang, golang-examples, inference, tensorflow, tensorflow-examples, tensorflowlite, tflite
- Language: Go
- Homepage:
- Size: 8.34 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

# Examples for tflitego
# how to use
```shell script
go get github.com/nbortolotti/tflitego
```## Examples
### Iris Model
This example propose an inference using tflitego.included:
* iris.go: all the example code to implement an inference using tflitego
* iris_lite.tflite: tflite generic model to run the example.### Image Categorization
This example propose inferences using images and with the objective to provide categorization or labeling.included:
* image.go:
* image_test.go
* images: folder with image placerholders.
* models: folder with tf models.
* mobilenet_v1_1.0_224_quant.tflite
* mobilenet_v2_1.0_224_quant.tflite
* labels_mobilenet_224.txtNote: ioncluded a **flag** to customize an image capture into Raspberry Pi device. --rasp=true. This option provide th eoportunity to use a Raspberry Pi Camera Module to provide an interative demostration of image categorization.
---
**Note:**remember to navigate into examples folder.
---
```shell script
go build
``````shell script
go run iris.go
```
![]()