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

本站现有博文321篇,共被浏览764602

本站已经建立2442天!

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