feat: 算法升级、整车配准集成与性能分析文档
算法更新: delivery v1.2.1、平整度v1.5、测距v2.2、整车配准v1.3 适配器: vehicle-registration 新增、各算法 manifest 和 adapter 更新 后端: taskCadFiles/source 字段迁移、derivedPointClouds 注册、取消任务联动 前端: ElapsedTime 时长显示、两步算法流程、canRun 逻辑修复 文档: 新增5份算法性能分析报告
This commit is contained in:
@@ -33,6 +33,15 @@ RUN PY_VER=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.versi
|
||||
&& SYS_SP=$(python3 -c "import site; print(site.getsitepackages()[0])") \
|
||||
&& ln -sf "${CONDA_SP}/OCC" "${SYS_SP}/OCC"
|
||||
|
||||
# conda-forge 编译的 .so 需要新版 libstdc++(CXXABI_1.3.15);
|
||||
# 动态查找 conda 提供的最新真实文件,避免硬编码版本号或双重软链问题
|
||||
RUN set -eux \
|
||||
&& LIBSTDCPP=$(ls /opt/conda/lib/libstdc++.so.6.0.* 2>/dev/null | sort -V | tail -1) \
|
||||
&& [ -n "$LIBSTDCPP" ] && ln -sf "$LIBSTDCPP" /usr/lib/x86_64-linux-gnu/libstdc++.so.6 \
|
||||
&& echo "libstdc++ -> $LIBSTDCPP" \
|
||||
&& python3 -c "from OCC.Core.STEPControl import STEPControl_Reader; print('pythonocc-core OK')" \
|
||||
&& python3 -c "from OCC.Core.BRep import BRep_Builder; print('OCC BRep OK')"
|
||||
|
||||
# 先安装几何依赖(镜像构建时固化,避免每次 compose up 再 pip)
|
||||
# cadquery-ocp 轮子约 70MB,默认 pip 超时过短会 Read timed out;可调大 PIP_DEFAULT_TIMEOUT
|
||||
# 默认国内 PyPI 源;覆盖示例:--build-arg PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/
|
||||
|
||||
@@ -64,9 +64,15 @@ RUN set -eux \
|
||||
&& /opt/conda/bin/conda clean -afy \
|
||||
&& ln -sf /opt/conda/lib/python3.10/site-packages/OCC \
|
||||
/usr/local/lib/python3.10/dist-packages/OCC
|
||||
# conda-forge 编译的 .so 需要新版 libstdc++;用 conda 自带的覆盖系统库
|
||||
RUN ln -sf /opt/conda/lib/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 \
|
||||
&& python3 -c "from OCC.Core.STEPControl import STEPControl_Reader; print('pythonocc-core OK')"
|
||||
# conda-forge 编译的 .so 需要新版 libstdc++(CXXABI_1.3.15);
|
||||
# 动态查找 conda 提供的最新真实文件,避免硬编码版本号或双重软链问题
|
||||
RUN set -eux \
|
||||
&& LIBSTDCPP=$(ls /opt/conda/lib/libstdc++.so.6.0.* 2>/dev/null | sort -V | tail -1) \
|
||||
&& [ -n "$LIBSTDCPP" ] \
|
||||
&& ln -sf "$LIBSTDCPP" /usr/lib/x86_64-linux-gnu/libstdc++.so.6 \
|
||||
&& echo "libstdc++ -> $LIBSTDCPP" \
|
||||
&& python3 -c "from OCC.Core.STEPControl import STEPControl_Reader; print('pythonocc-core OK')" \
|
||||
&& python3 -c "from OCC.Core.BRep import BRep_Builder; print('OCC BRep OK')"
|
||||
|
||||
# cadquery(与 Dockerfile.dev 一致)
|
||||
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
@@ -40,16 +40,17 @@ http {
|
||||
gzip_types text/plain text/css text/xml application/json application/javascript
|
||||
application/rss+xml application/atom+xml image/svg+xml;
|
||||
|
||||
# 文件上传大小限制 (支持大型点云文件)
|
||||
client_max_body_size 2G;
|
||||
# 文件上传大小限制 (支持大型点云文件,单文件最大 50 GB)
|
||||
client_max_body_size 50G;
|
||||
client_body_buffer_size 128M;
|
||||
client_body_timeout 600s;
|
||||
client_body_timeout 3600s; # 1 小时:50 GB / 15 MB/s ≈ 57 分钟
|
||||
|
||||
# 代理缓冲设置
|
||||
# 代理缓冲设置(大文件关闭 proxy_buffering,直接流式转发给 Node)
|
||||
proxy_buffer_size 128k;
|
||||
proxy_buffers 4 256k;
|
||||
proxy_busy_buffers_size 256k;
|
||||
proxy_temp_file_write_size 256k;
|
||||
proxy_request_buffering off; # 关键:不缓存请求体,直接流式转发
|
||||
|
||||
# 上游服务器
|
||||
upstream app_server {
|
||||
@@ -81,9 +82,10 @@ http {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
proxy_read_timeout 600s;
|
||||
proxy_connect_timeout 600s;
|
||||
proxy_send_timeout 600s;
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_connect_timeout 75s;
|
||||
proxy_send_timeout 3600s;
|
||||
proxy_request_buffering off;
|
||||
}
|
||||
|
||||
# API路由
|
||||
@@ -94,9 +96,10 @@ http {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_read_timeout 600s;
|
||||
proxy_connect_timeout 600s;
|
||||
proxy_send_timeout 600s;
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_connect_timeout 75s;
|
||||
proxy_send_timeout 3600s;
|
||||
proxy_request_buffering off;
|
||||
}
|
||||
|
||||
# MinIO存储代理 (可选)
|
||||
|
||||
Reference in New Issue
Block a user