Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules/py_tf: Fix non-square image support. #2031

Merged
merged 1 commit into from Dec 4, 2023

Conversation

kwagyeman
Copy link
Member

Non-square image support has not been working for a long time. This forum post pointed out the issue: https://forums.openmv.io/t/edge-impulse-result-wrong-on-openmv-h7-plus/8968/3.

Code is now updated to use the new draw image scaling and centering logic. This applies for classification and segmentation/detect.

Then segmentation has been updated to locate the final result in the right location given all the scaling and cropping going on when your image aspect ratio does not match the CNN aspect ratio.

@iabdalkader
Copy link
Member

This pull request has been mentioned on OpenMV Forums. There might be relevant details there:

https://forums.openmv.io/t/edge-impulse-result-wrong-on-openmv-h7-plus/8968/7

@kwagyeman kwagyeman force-pushed the kwabena/py_tf_fix_segment branch 2 times, most recently from a60609a to 2b287d4 Compare November 30, 2023 22:13
src/omv/modules/py_tf.c Outdated Show resolved Hide resolved
src/omv/modules/py_tf.c Outdated Show resolved Hide resolved
@iabdalkader iabdalkader merged commit 96ffa1f into openmv:master Dec 4, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants