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

本站现有博文328篇,共被浏览858326

本站已经建立2566天!

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