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

本站现有博文339篇,共被浏览995987次

本站已经建立2706天!

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