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

本站现有博文332篇,共被浏览900714

本站已经建立2602天!

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