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

本站现有博文340篇,共被浏览1019275次

本站已经建立2719天!

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