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

本站现有博文327篇,共被浏览833398

本站已经建立2538天!

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