diff --git a/ultralytics/cfg/__init__.py b/ultralytics/cfg/__init__.py index c4ea4baa0b..2f77024352 100644 --- a/ultralytics/cfg/__init__.py +++ b/ultralytics/cfg/__init__.py @@ -610,7 +610,12 @@ def handle_yolo_info(args: List[str]) -> None: except SyntaxError as e: LOGGER.warning(f"WARNING ⚠️ info error: '{e}'.") except FileNotFoundError: - LOGGER.error(f"Model '{file}' not found, try providing full path to file.") + fp_ex = Path.cwd().absolute() / file # show file and current working directory as full-path example + LOGGER.error( + f"{colorstr('red', 'bold', 'ERROR:')} Model '{colorstr('yellow', file)}' not found, try providing full path to file." + "\n" + f"\t{colorstr('underline', 'Usage:')} {colorstr('cyan',f'yolo info model={fp_ex}')}" + ) except Exception as e: LOGGER.error(f"WARNING ⚠️ info error: {e}")