Nessuna descrizione

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

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,预测部署的代码实现大部分是一致的。