robomimic icon indicating copy to clipboard operation
robomimic copied to clipboard

basic support for logging warnings

Open amandlek opened this issue 3 years ago • 0 comments

  • adding functions log_warning and flush_warnings to utils/log_utils.py, allowing us to log warnings (in yellow text by default) at the start of training, and cache them so that they are displayed once again right before training starts, so that they appear all together in a convenient location that's easy to check while debugging
  • to leverage, call log_warning with the warning message, and optionally specify the text color (default is "yellow"), and whether you want to print the warning immediately (in addition to printing later when flush_warnings is called)

amandlek avatar Feb 18 '22 06:02 amandlek