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 the camvid and imagenet_txt formats #558

Merged
merged 3 commits into from
Nov 19, 2021
Merged

Add detection support for the camvid and imagenet_txt formats #558

merged 3 commits into from
Nov 19, 2021

Conversation

IRDonch
Copy link

@IRDonch IRDonch commented Nov 19, 2021

Summary

As a supporting mechanism, add a way to exclude some files to require_file.

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

@@ -130,7 +133,9 @@ def fail(self, requirement_desc: str) -> NoReturn:

raise FormatRequirementsUnmet((requirement_desc,))

def require_file(self, pattern: str) -> str:
def require_file(self, pattern: str, *,
exclude_fnames: Union[str, Collection[str]] = (),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think, we should try to extend it with paths in future.

@zhiltsov-max zhiltsov-max merged commit 9956f17 into openvinotoolkit:develop Nov 19, 2021
@IRDonch IRDonch deleted the detect-camvid-imagenet branch November 22, 2021 11:13
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