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

本站现有博文323篇,共被浏览795313

本站已经建立2493天!

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