EADST

PPOCR Common Commands

PPOCR is a open-source OCR framework with the PaddlePaddle environment.

Here are common commands.

# Train
python tools/train.py -c configs/rec/config_name.yml
# Train with Multi-GPU
python -m paddle.distributed.launch --gpus='0,1' tools/train.py -c configs/rec/config_name.yml

# Val
python -m paddle.distributed.launch --gpus '0' tools/eval.py -c output/rec/config.yml -o Global.checkpoints=./output/rec/best_accuracy

# Predict
python tools/infer/predict_rec.py --image_dir="./test/" --rec_model_dir="./inference/rec" --rec_image_shape="3, 32, 100" --rec_char_type="ch" --rec_char_dict_path="./ppocr/utils/dictionary.txt"

# Model to Inference
python tools/export_model.py -c output/rec/config.yml -o Global.checkpoints=./output/rec/best_accuracy Global.save_inference_dir=./inference/rec     

# To ONNX
paddle2onnx -m /data/dong/ppocr/output/det/ --model_filename inference.pdmodel --params_filename inference.pdiparams -s det.onnx --opset_version 11

Reference:

https://aistudio.baidu.com/aistudio/projectdetail/3223879 https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.4/doc/doc_ch/detection.md https://aistudio.baidu.com/aistudio/projectdetail/739559

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
Datetime LaTeX Vim Pandas Cloudreve WebCrawler icon 递归学习法 Translation Pickle Paper Baidu tqdm Attention CUDA Diagram 搞笑 LLAMA Dataset Bin PyTorch Qwen2 Breakpoint CTC OpenCV Streamlit Logo 强化学习 UNIX v2ray Distillation Review 论文速读 ModelScope tar OpenAI NLTK scipy GGML 顶会 diffusers 净利润 FP8 Video Image2Text 第一性原理 Math FP32 Shortcut mmap 签证 Knowledge 报税 图形思考法 Permission Plate Disk Agent Git PyCharm Website VSCode VGG-16 EXCEL git llama.cpp ONNX Freesound Qwen NLP Tensor Paddle LLM ResNet-50 Docker PDB FP16 NameSilo Ptyhon Michelin Food CAM 音频 API transformers 算法题 TSV 证件照 多进程 Data CLAP 财报 Anaconda HuggingFace C++ hf SQL 图标 WAN Firewall Input Pillow Augmentation 阿里云 git-lfs Quantize GoogLeNet Card DeepStream Llama Search Mixtral 继承 Gemma Conda Excel Plotly CSV Quantization SQLite JSON Hotel BeautifulSoup Google Safetensors Jetson GIT Miniforge News Markdown CV VPN 多线程 Domain Qwen2.5 Github Tiktoken torchinfo 飞书 CEIR PDF BF16 GPT4 OCR 腾讯云 Base64 Numpy RAR uwsgi Vmess IndexTTS2 关于博主 Hungarian uWSGI FP64 Sklearn Crawler Ubuntu Template Bert YOLO Algorithm COCO UI SAM Python InvalidArgumentError AI TTS TensorRT Proxy TensorFlow 版权 Random XGBoost Animate Pytorch 公式 Land Windows Heatmap SPIE Web SVR Zip Statistics RGB logger Rebuttal Nginx Claude Django HaggingFace Linux XML Clash DeepSeek ChatGPT Magnet Bitcoin MD5 云服务器 printf FastAPI Password v0.dev LeetCode 论文 域名 Color PIP Hilton Jupyter Use Transformers FlashAttention QWEN GPTQ BTC CC Interview LoRA Tracking Bipartite
站点统计

本站现有博文327篇,共被浏览826470

本站已经建立2533天!

热门文章
文章归档
回到顶部