PaddlePaddle/PP-LCNet_x1_0_table_cls_onnx

🤗 Hugging Face 来源image-to-textapache-2.07 MBother✓ 1 个校验和今天更新
一条命令提交

在你的模型文件夹旁边运行它。它会制作种子、将文件与 Hugging Face 比对,然后提交。你只需开始做种,并粘贴你账户中的密钥。它只读取你的文件,绝不修改。如果愿意,可以先阅读脚本。

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo PaddlePaddle/PP-LCNet_x1_0_table_cls_onnx ./model-folder
需要做种者 →

PP-LCNet_x1_0_table_cls

Introduction

The Table Classification Module is a key component in computer vision systems, responsible for classifying input table images. The performance of this module directly affects the accuracy and efficiency of the entire table recognition process. The Table Classification Module typically receives table images as input and, using deep learning algorithms, classifies them into predefined categories based on the characteristics and content of the images, such as wired and wireless tables. The classification results from the Table Classification Module serve as output for use in table recognition pipelines. The key metrics are as follow:

Model Top1 Acc(%) GPU Inference Time (ms)
[Regular Mode / High-Performance Mode]
CPU Inference Time (ms)
[Regular Mode / High-Performance Mode]
Model Storage Size (M)
PP-LCNet_x1_0_table_cls 94.2 2.35 / 0.47 4.03 / 1.35 6.6M

Model Usage

Install Dependencies

pip install -U paddleocr
pip install -U onnxruntime-gpu

CLI Usage

paddleocr table_classification -i ./demo.jpg --model_name PP-LCNet_x1_0_table_cls --engine onnxruntime

Python API Usage

from paddleocr import TableClassification

model = TableClassification(
    model_name="PP-LCNet_x1_0_table_cls",
    engine="onnxruntime",
)
output = model.predict("./demo.jpg", batch_size=1)
for res in output:
    res.print()
    res.save_to_json(save_path="./output/res.json")