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

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

本站已经建立2628天!

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