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

Removed print results of inference from infer_tool #6770

Merged
merged 2 commits into from
Jul 26, 2021

Conversation

ishariko
Copy link
Contributor

Details:

  • Removed print results of inference from infer_tool due to sea_runtool freeze when infer_tool.py try to print a long line with results

Tickets:

  • 59427

@ishariko ishariko requested a review from a team July 22, 2021 22:29
@openvino-pushbot openvino-pushbot added the category: IE Tests OpenVINO Test: plugins and common label Jul 22, 2021
@@ -74,6 +74,4 @@ def cli_parser():
results = infer(ir_path=ir_path, device=device)
np.savez(out_path, **results)
log.info("Path for inference results: {}".format(out_path))
log.info("Inference results:")
log.info(results)
log.info("SUCCESS!")
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather control it with verbosity level. You can configure it to not print INFO level by default. You optionally then can add --verbose into infer tool command line. Having that you can still debug infer results with the tool but have the logs of cc clean

Copy link
Contributor

Choose a reason for hiding this comment

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

Le logger level configuration is on line #17.

log.basicConfig(format="[ %(levelname)s ] %(message)s", level=log.INFO, stream=sys.stdout)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, that's good idea. Thanks 😊

@ishariko ishariko requested a review from asomsiko July 23, 2021 07:27
@asomsiko asomsiko merged commit 33dfcd6 into openvinotoolkit:master Jul 26, 2021
rnugmanx pushed a commit to rnugmanx/openvino that referenced this pull request Aug 26, 2021
Detailed infer results printing overload output and freeze sea_runtool.
Hiding debug messages by default.
andrei-cv pushed a commit to andrei-cv/openvino that referenced this pull request Aug 30, 2021
Detailed infer results printing overload output and freeze sea_runtool.
Hiding debug messages by default.
@ishariko ishariko deleted the ishariko/fix_freeze branch September 2, 2021 06:37
akuporos pushed a commit to akuporos/openvino that referenced this pull request Sep 29, 2021
Detailed infer results printing overload output and freeze sea_runtool.
Hiding debug messages by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: IE Tests OpenVINO Test: plugins and common
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants