From 4579be58c9b6765dee00e216ede191252477c90e Mon Sep 17 00:00:00 2001 From: luguoyixiazi <83990760+luguoyixiazi@users.noreply.github.com> Date: Fri, 21 Mar 2025 04:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0docker=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b51c0e..f2f68cd 100644 --- a/README.md +++ b/README.md @@ -55,11 +55,15 @@ pip install -r requirements.txt - 运行 `python convert.py`(自行进去修改需要转换的模型,一般是选loss小的) - paddle模型转换要装paddle2onnx,详情参见https://www.paddlepaddle.org.cn/documentation/docs/guides/advanced/model_to_onnx_cn.html -### 5.启动fastapi服务(必须要有训练完成的onnx格式模型) +### 5-a.启动fastapi服务(必须要有训练完成的onnx格式模型) 运行 `python main.py`(默认用的paddle的onnx模型,如果要用resnet18可以自己改注释) 由于轨迹问题,可能会出现验证正确但是结果失败,所以建议增加retry次数,训练后的paddle模型正确率在99.9%以上 +### 5-b.使用docker启动服务 + +镜像地址为luguoyixiazi/test_nine:25.3.21 +运行时只需指定绑定的port即可 ### 6.api调用