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

本站现有博文322篇,共被浏览788451

本站已经建立2483天!

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