@@ -20,13 +20,30 @@ The purpose is to solve the following problems by forcibly rewriting tflite's in
2020 ![ 02] ( https://github.com/PINTO0309/tflite-input-output-rewriter/assets/33194443/5d73d9e1-cae3-498f-8de6-371a8ddb9ce6 )
2121
2222## Execution
23- ``` bash
24- sudo apt-get update && sudo apt-get install -y flatbuffers-compiler
25-
26- python tfliteiorewriter/main.py -i xxxx.tflite
27- ```
23+ 1 . Docker
24+ ```
25+ $ docker login ghcr.io
26+
27+ Username (xxxx): {Enter}
28+ Password: {Personal Access Token}
29+ Login Succeeded
30+
31+ $ docker run --rm -it \
32+ -v `pwd`:/home/user \
33+ ghcr.io/pinto0309/tfliteiorewriter:latest
34+
35+ tfliteiorewriter -i xxxx.tflite
36+ ```
37+ 2. Local
38+ ```bash
39+ sudo apt-get update && sudo apt-get install -y flatbuffers-compiler
40+ # Other than debian/ubuntu: https://github.com/google/flatbuffers/releases
41+ pip install -U tfliteiorewriter
42+
43+ tfliteiorewriter -i xxxx.tflite
44+ ```
2845```
29- usage: main.py [-h] -i INPUT_TFLITE_FILE_PATH [-v] [-o OUTPUT_FOLDER_PATH] [-r RENAME RENAME]
46+ usage: tfliteiorewriter [ -h] -i INPUT_TFLITE_FILE_PATH [ -v] [ -o OUTPUT_FOLDER_PATH] [ -r RENAME RENAME]
3047
3148optional arguments:
3249 -h, --help
@@ -66,7 +83,7 @@ If this tool is run without additional options, it will overwrite the input/outp
6683
6784## View Mode Result
6885```bash
69- python tfliteiorewriter/main.py -i xxxx.tflite -v
86+ tfliteiorewriter -i xxxx.tflite -v
7087```
7188![ image] ( https://github.com/PINTO0309/tflite-input-output-rewriter/assets/33194443/0d43d93d-647d-40f1-b464-662e39dcf228 )
7289
@@ -78,7 +95,7 @@ Replace with any name by specifying `{From}` and `{To}` in the `--renmae (-r)` o
7895 ![ image] ( https://github.com/PINTO0309/tflite-input-output-rewriter/assets/33194443/61195485-a756-4449-8bf2-4d9e83f06feb )
7996
8097``` bash
81- python tfliteiorewriter/main.py \
98+ tfliteiorewriter \
8299-i xxxx.tflite \
83100-r serving_default_input_1:0 aaa \
84101-r StatefulPartitionedCall:0 bbb
0 commit comments