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

本站现有博文335篇,共被浏览937523

本站已经建立2648天!

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