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

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

本站已经建立2463天!

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