-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Removed print results of inference from infer_tool #6770
Conversation
@@ -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!") |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 😊
Detailed infer results printing overload output and freeze sea_runtool. Hiding debug messages by default.
Detailed infer results printing overload output and freeze sea_runtool. Hiding debug messages by default.
Detailed infer results printing overload output and freeze sea_runtool. Hiding debug messages by default.
Details:
infer_tool
due tosea_runtool
freeze wheninfer_tool.py
try to print a long line with resultsTickets: