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

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

本站已经建立2673天!

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