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

本站现有博文337篇,共被浏览953402次

本站已经建立2663天!

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