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

本站现有博文321篇,共被浏览773695

本站已经建立2463天!

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