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

Use YuNet of fixed input shape to fix not-supported-dynamic-zero-shape for FaceDetectorYN #21607

Merged
merged 2 commits into from
Feb 21, 2022

Conversation

fengyuentau
Copy link
Member

@fengyuentau fengyuentau commented Feb 13, 2022

Related bug report: #21340 (comment)
PR for opencv_extra: opencv/opencv_extra#958

If we are using YuNet of fixed input shape as the solution, the one in OpenCV Zoo will need to be updated as well.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

// FIXIT repair assertion
// Disabled to pass face detector tests from #20422
// CV_Assert(!isDynamicShape); // not supported
CV_Assert(!isDynamicShape); // not supported
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated detection model passes this assertion.
But recognition model doesn't.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Problem fixed. It was using before-update version of YuNet in the regression test of face recognition.

Copy link
Member

@rogday rogday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@alalek alalek merged commit f77c357 into opencv:4.x Feb 21, 2022
@UnaNancyOwen
Copy link
Contributor

@alalek Do you have a plans to merge changes from 4.x branch into 5.x branch soon?

@alalek alalek mentioned this pull request Feb 22, 2022
@fengyuentau fengyuentau deleted the fix_FaceDetectorYN_dynamic_shape branch February 25, 2022 04:20
@fengyuentau fengyuentau restored the fix_FaceDetectorYN_dynamic_shape branch February 25, 2022 04:20
a-sajjad72 pushed a commit to a-sajjad72/opencv that referenced this pull request Mar 30, 2023
…ynamic_shape

Use YuNet of fixed input shape to fix not-supported-dynamic-zero-shape for FaceDetectorYN

* use yunet with input of fixed shape

* update yunet used in face recognition regression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants