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

本站现有博文333篇,共被浏览918798

本站已经建立2624天!

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