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

本站现有博文341篇,共被浏览1033878次

本站已经建立2723天!

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