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 a dedicated command to detect a dataset's format #576

Merged
merged 12 commits into from
Jan 25, 2022
Merged

Add a dedicated command to detect a dataset's format #576

merged 12 commits into from
Jan 25, 2022

Conversation

IRDonch
Copy link

@IRDonch IRDonch commented Dec 8, 2021

Summary

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

@sizov-kirill sizov-kirill mentioned this pull request Jan 18, 2022
7 tasks
Roman Donchenko added 8 commits January 21, 2022 14:50
There is actually very little in this code that deals with environments,
and this move makes it possible to reuse the code for other purposes.
This will allow verbose reporting of format detection outcomes.
I don't think it's actually necessary to report different rejection reasons
via different methods, given how similar they are represented in the JSON
report. If we ever need to pass custom data for different reasons, we can
modify the callback / add a new one.
@IRDonch IRDonch marked this pull request as ready for review January 21, 2022 11:53
zhiltsov-max
zhiltsov-max previously approved these changes Jan 24, 2022
Roman Donchenko added 3 commits January 24, 2022 19:12
`__str__` is the typical way to report exception messages, and I don't see
a compelling reason not to use it here.

Also, change the `human_message` parameter of `RejectionCallback` to an
`str`, since there's no real need to report the message as a sequence of
lines rather than as a multiline string. Also, with the sequence
representation, it was possible to produce a line with a `\n` in the middle,
which is undesirable. A single multiline string is not susceptible to this.
Also, rename the `detectors` parameter to `formats`, since that's a better
representation of its semantics.
I think the old name was derived from a class name that is no longer used.
It's irrelevant now.
zhiltsov-max
zhiltsov-max previously approved these changes Jan 24, 2022
@IRDonch IRDonch merged commit 3000bde into openvinotoolkit:develop Jan 25, 2022
@IRDonch IRDonch deleted the detect-format-command branch January 25, 2022 11:36
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