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

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

本站已经建立2543天!

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