Unverified 提交 22da63e3 authored 作者: Glenn Jocher's avatar Glenn Jocher 提交者: GitHub

Fix zero-export handling with `if any(f):` (#6569)

* Fix zero-export handling with `if any(f):` Partial fix for https://github.com/ultralytics/yolov5/issues/6563 * Cleanup
上级 006eb40a
......@@ -476,6 +476,7 @@ def run(data=ROOT / 'data/coco128.yaml', # 'dataset.yaml path'
# Finish
f = [str(x) for x in f if x] # filter out '' and None
if any(f):
LOGGER.info(f'\nExport complete ({time.time() - t:.2f}s)'
f"\nResults saved to {colorstr('bold', file.parent.resolve())}"
f"\nDetect: python detect.py --weights {f[-1]}"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论