No Description

jingze_cheng db1e83b48c fix: 修复依赖版本冲突 7 months ago
core b8d49d5a45 chore: 删除临时输出 7 months ago
deploy 8a43236ce0 更新 'deploy/Jenkinsfile' 10 months ago
minimal_client_server_example b6077d2e00 init 2 years ago
sx_utils 961521c830 fix: 重构结构 1 year ago
templates 43d208f007 feat: 支持多尺度推理及后处理 7 months ago
test_imgs f9e641d1b0 first 2 years ago
testing a412d85bcb - 2 years ago
.DS_Store f9e641d1b0 first 2 years ago
.gitignore 82da82d435 chore: 更新gitignore 8 months ago
Dockerfile 0807c77982 fix: 修复Dockerfile 7 months ago
Dockerfile.base 3b59c0ca5b fix: Dockerfile 1 year ago
Makefile 588f8e69da fix: pt文件 1 year ago
README.md 37c228510d docs: 更新README 7 months ago
client.py 3e4238836d 更新模型使用 2 years ago
create_md.py ba9ddf64fc first 2 years ago
cutimgs.py ba9ddf64fc first 2 years ago
docker-compose.yml f9e641d1b0 first 2 years ago
environment.yml db1e83b48c fix: 修复依赖版本冲突 7 months ago
kubeconfig-sxkj 671746b0b3 feat: kubeconfig 1 year ago
kubeconfig-sxkjprod 671746b0b3 feat: kubeconfig 1 year ago
requirements.txt db1e83b48c fix: 修复依赖版本冲突 7 months ago
run.py 2fa551ba1f feat: yolov7 1 year ago
server.py 43d208f007 feat: 支持多尺度推理及后处理 7 months ago
test.py 2fa551ba1f feat: yolov7 1 year ago
writeMD.py f9e641d1b0 first 2 years ago

README.md

水平框版面分析

基于 Official YOLOv7PaddleYOLO,用于水平框版面分析。

环境

conda env create -f environment.yml

服务端

python run.py --port 8080

镜像打包

make all

模型配置

模型名称 模型配置
Official YOLOv7 ./core/detectors/yolov7.py
PaddleYOLO YOLOv7P6-E6 ./core/detectors/paddle_yolo/__init__.py

如果更新了模型权重,请同时修改创建镜像时的下载地址,如:

$ cat Dockerfile
...
# 模型权重下载地址
RUN wget ftp://192.168.199.31/yolov7p6_e6_300e/20240314/yolov7p6_e6_300e_coco.zip
...

服务实现

版面分析服务的简化流程为:

图片 + 模型名称
    |
    | (根据模型名称,对图片进行相应的布局检测)
    v
布局检测框集

其中基于 PaddleYOLO 的布局检测实现中还包含图像预处理,模型预测,后处理等。源码:PaddleYOLO/deploy/python/infer.py#L62

注:PaddleYOLO 基于 PaddleDetection,预测部署的代码实现大部分是一致的。