浏览代码

Simplify ONNX inference command (#4405)

modifyDataloader
Glenn Jocher GitHub 3 年前
父节点
当前提交
57c342a6a5
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      export.py

+ 1
- 1
export.py 查看文件

@@ -76,7 +76,7 @@ def export_onnx(model, img, file, opset, train, dynamic, simplify):
except Exception as e:
print(f'{prefix} simplifier failure: {e}')
print(f'{prefix} export success, saved as {f} ({file_size(f):.1f} MB)')
print(f"{prefix} run --dynamic ONNX model inference with detect.py: 'python detect.py --weights {f}'")
print(f"{prefix} run --dynamic ONNX model inference with: 'python detect.py --weights {f}'")
except Exception as e:
print(f'{prefix} export failure: {e}')


正在加载...
取消
保存