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

本站现有博文332篇,共被浏览901754

本站已经建立2603天!

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