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

Add detection support for 4 more formats #550

Merged
merged 8 commits into from
Nov 18, 2021
Merged

Add detection support for 4 more formats #550

merged 8 commits into from
Nov 18, 2021

Conversation

IRDonch
Copy link

@IRDonch IRDonch commented Nov 15, 2021

Summary

The formats in question are lfw, open_images, vgg_face2 and widerface. As supporting infrastructure, add alternative requirement support.

Also, add low-level format detection tests, which I should really have done earlier.

How to test

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT


def fail(self, requirement: str) -> NoReturn:
"""
Places a requirement that is never met. `requirement` must contain
a human-readable description of the requirement.
"""
self._start_requirement()
self._start_requirement("fail")
Copy link
Contributor

Choose a reason for hiding this comment

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

"a requirement ('fail') can't be placed directly within an 'alternatives' block"

Still sound strange, IMO. Not a blocker, anyway.

Copy link
Author

Choose a reason for hiding this comment

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

🤷‍♂️ It's a message for developers. I think they can figure it out.

Roman Donchenko added 2 commits November 18, 2021 13:11
The new name more directly represents what the function does, and is
less visually similar to `alternatives`.
This kind of value is called `requirement_desc` elsewhere.
@IRDonch IRDonch merged commit 25a5e4e into openvinotoolkit:develop Nov 18, 2021
@IRDonch IRDonch deleted the detection-alternatives branch November 18, 2021 10:29
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.

2 participants