-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Release the tflite inference from tensorflow * Update README * Remove the bodypix_tflite from develop branch * Add tflite inference to the tflite_inference branch * added initial build_tflite workflow job * added --use-feature=in-tree-build * don't install tflite by default * moved build_tflite up * added tflite extra * using dev-install-tflite * make dev-install-tflite install build and dev depenencies * run pytest for tflite * using tflite extra when installing tflite * added make dev-pytest-tflite * linting: addressed markdown linting * made tensorflow import optional * added test_should_be_able_to_use_existing_tflite_model * import tflite_runtime.interpreter * extracted load_image * load image using pillow * adapted pad_and_resize_to using _pad_image_like_tensorflow * implemented _resize_image_to_using_pillow * added make dev-watch-tflite * fallback to np expand_dims without tf * extracted _get_mobilenet_preprocessed_image with np fallback * reuse resize_image_to for scale_and_crop_to_input_tensor_shape * automatically reduce dimension if needed * added support for single channel in _resize_image_to_using_pillow * extracted get_sigmoid and implemented np version * reuse resize_image_to * fixed failing test * removed trailing space from requirements.txt * cli: automatically select tflite model if full tf is not available * don't fail with missing tf when adding alpha mask * added tflite support to draw mask cli * added support for remote tflite models; defined model tflite paths * use model path constants for cli * added TensorFlow Lite Runtime support section to readme * ignore tflite models * removed obsolete bodypix_tflite diectory * fixed draw mask * replaced pillow resize with numpy handling floats * retain original dtype when padding * use float32 for imagenet preprocessing * debug logging of input image * added list-tflite-models sub command * fixed resnet tflite support * added more tflite models Co-authored-by: MrRiahi <[email protected]>
- Loading branch information
Showing
17 changed files
with
698 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ build | |
*.egg-info | ||
|
||
*.pyc | ||
*.tflite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tflite-runtime==2.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.