Unverified 提交 388016e9 authored 作者: Glenn Jocher's avatar Glenn Jocher 提交者: GitHub

Update 'results saved to' string (#4275)

上级 587c4b4b
......@@ -189,7 +189,7 @@ def run(weights='yolov5s.pt', # model.pt path(s)
if save_txt or save_img:
s = f"\n{len(list(save_dir.glob('labels/*.txt')))} labels saved to {save_dir / 'labels'}" if save_txt else ''
print(f"Results saved to {save_dir}{s}")
print(f"Results saved to {colorstr('bold', save_dir)}{s}")
if update:
strip_optimizer(weights) # update model (to fix SourceChangeWarning)
......
......@@ -155,7 +155,9 @@ def run(weights='./yolov5s.pt', # weights path
export_coreml(model, img, file)
# Finish
print(f'\nExport complete ({time.time() - t:.2f}s). Visualize with https://github.com/lutzroeder/netron.')
print(f'\nExport complete ({time.time() - t:.2f}s)'
f"Results saved to {colorstr('bold', file.parent.resolve())}\n"
f'Visualize with https://netron.app')
def parse_opt():
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论