examples: Fix TensorFlow segmentation example#1371
Open
davidplowman wants to merge 1 commit intoraspberrypi:nextfrom
Open
examples: Fix TensorFlow segmentation example#1371davidplowman wants to merge 1 commit intoraspberrypi:nextfrom
davidplowman wants to merge 1 commit intoraspberrypi:nextfrom
Conversation
b1050fc to
5389b75
Compare
A few fixes and tidies: * Can't save PIL rgbx images as PNG any more. Just avoid the PIL image completely. * Don't reload the network and files for every inference. * Convert YUV420, not greyscale, to RGB. * Avoid resizing the low res image for no reason (though the odd-sized input to the model makes this slightly irritating) * Show how to request an RGB image directly on a Pi 5. Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
5389b75 to
96b9aa8
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.
Can't save PIL rgbx images as PNG any more. Just avoid the PIL image completely.