Skip to content

Commit 38308d7

Browse files
committed
fix
1 parent b0d1236 commit 38308d7

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎README.md‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ Fine-tune a pre-trained **TF-EfficientNet-Lite4** model on a custom image datase
66
2. Create subfolders (example: dog, cat, fish, bird) and populate them.
77
3. Run `python src/fine_tune_from_base.py`.
88

9-
When its finished it will return a checkpoint file, labels.txt, and the fine-tuned model.
9+
When its finished it will return a checkpoint file.
10+
11+
### Create a tflite model
12+
1. Run `python src/convert_to_tflite.py`.
13+
14+
This will return a tflite and labels.txt file.
1015

1116
> [!NOTE]
12-
> Fine-tuned models are using in conjunction with the [Vision Classification](https://github.com/doppeltilde/vision_classification) project, utilizing its Mediapipe Image Classification task.
17+
> Fine-tuned models are used in conjunction with the [Vision Classification](https://github.com/doppeltilde/vision_classification) project, utilizing its Mediapipe Image Classification task.
1318
1419
---
1520
_Notice:_ _This project was initally created to be used in-house, as such the

‎requirements.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ tqdm==4.67.3
77
pillow==12.2.0
88
numpy==2.4.4
99
mediapipe==0.10.33
10-
flatbuffers==25.12.19
10+
flatbuffers==25.12.19
11+
tflite-support==0.4.4

‎src/convert_to_tflite.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import traceback
88
from pathlib import Path
99
import flatbuffers
10+
from tflite_support import metadata as _metadata
11+
from tflite_support import metadata_schema_py_generated as _metadata_fb
1012

1113
script_dir = Path(__file__).parent.resolve()
1214

0 commit comments

Comments
 (0)