Repository navigation
Add examples/selfie_segmentation/, an end-to-end example that calibrates selfie_multiclass_256x256.tflite and quantizes it to A8W8 with the min_max, histogram_percentile, and histogram_mse activation ranges, in both calibration modes, and compares the segmentation quality of each quantized model with the float model. - #12079
Merged
Merged
Conversation
copybara-service
Bot
force-pushed
the
litert_pr_1021344586
branch
from
November 20, 2026 22:54
a7d94c6 to
92f90b5
Compare
…rates `selfie_multiclass_256x256.tflite` and quantizes it to A8W8 with the `min_max`, `histogram_percentile`, and `histogram_mse` activation ranges, in both calibration modes, and compares the segmentation quality of each quantized model with the float model. - Uses the in-tree `async_segmentation` sample model and image when present, and otherwise downloads the MediaPipe selfie segmentation model and `portrait.jpg` into `--output_dir` (`/tmp` by default). Other images can be passed with `--image_paths`; tests use synthetic images. - Add `pillow` to `opensource_only/pyproject.toml` for image loading. LiteRT-PiperOrigin-RevId: 1026785496
copybara-service
Bot
force-pushed
the
litert_pr_1021344586
branch
from
November 20, 2026 23:14
92f90b5 to
fcc3148
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
examples/selfie_segmentation/, an end-to-end example that calibratesselfie_multiclass_256x256.tfliteand quantizes it to A8W8 with themin_max,histogram_percentile, andhistogram_mseactivation ranges, in both calibration modes, and compares the segmentation quality of each quantized model with the float model.async_segmentationsample model and image when present, and otherwise downloads the MediaPipe selfie segmentation model andportrait.jpginto--output_dir(/tmpby default). Other images can be passed with--image_paths; tests use synthetic images.pillowtoopensource_only/pyproject.tomlfor image loading.