A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/PaddlePaddle/PaddleOCR/raw/main/docs/version3.x/module_usage/text_detection.md below:

model_name 模型名称。如果设置为None,则使用PP-OCRv5_server_detstr|None None model_dir 模型存储路径。 str|None None device 用于推理的设备。
例如:"cpu""gpu""npu""gpu:0""gpu:0,1"
如指定多个设备,将进行并行推理。
默认情况下,优先使用 GPU 0;若不可用则使用 CPU。 str|None None enable_hpi 是否启用高性能推理。 bool False use_tensorrt 是否启用 Paddle Inference 的 TensorRT 子图引擎。如果模型不支持通过 TensorRT 加速,即使设置了此标志,也不会使用加速。
对于 CUDA 11.8 版本的飞桨,兼容的 TensorRT 版本为 8.x(x>=6),建议安装 TensorRT 8.6.1.6。
bool False precision 当使用 Paddle Inference 的 TensorRT 子图引擎时设置的计算精度。
可选项:"fp32""fp16"str "fp32" enable_mkldnn 是否启用 MKL-DNN 加速推理。如果 MKL-DNN 不可用或模型不支持通过 MKL-DNN 加速,即使设置了此标志,也不会使用加速。
bool True mkldnn_cache_capacity MKL-DNN 缓存容量。 int 10 cpu_threads 在 CPU 上推理时使用的线程数量。 int 10 limit_side_len 检测的图像边长限制:int 表示边长限制数值。如果设置为None,将使用模型默认配置。 int|None None limit_type 检测的图像边长限制,检测的边长限制类型,"min" 表示保证图像最短边不小于det_limit_side_len,"max"表示保证图像最长边不大于limit_side_len。如果设置为None,将使用模型默认配置。 str|None None max_side_limit 检测的图像边长最大值限制:int 限制输入检测模型的图片最长边。如果设置为 None,将使用模型默认配置。 int|None None thresh 像素得分阈值。输出概率图中得分大于该阈值的像素点被认为是文本像素。如果设置为None,将使用模型默认配置。 float|None None box_thresh 检测结果边框内,所有像素点的平均得分大于该阈值时,该结果会被认为是文字区域。如果设置为None,将使用模型默认配置。 float|None None unclip_ratio Vatti clipping算法的扩张系数,使用该方法对文字区域进行扩张。如果设置为None,将使用模型默认配置。 float|None None input_shape 模型输入图像尺寸,格式为 (C, H, W)tuple|None None

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4