Skip to content

paddle OCR V6 GPU识别异常 #185

Description

@HopeLi90

你好,在使用paddle OCR V6模型,显卡nvidia geoforce gtx 1650 ti启用gpu功能,代码如下所示,let ort_config = OrtSessionConfig::new()
.with_parallel_execution(true)
.with_memory_pattern(true)
.with_inter_threads(16)
.with_intra_threads(16)
.with_optimization_level(oar_ocr::core::config::OrtGraphOptimizationLevel::All)
.with_execution_providers(vec![
OrtExecutionProvider::CUDA {
device_id: Some(1),
gpu_mem_limit: None,
arena_extend_strategy: None,
cudnn_conv_algo_search: None,
cudnn_conv_use_max_workspace: None
},
OrtExecutionProvider::DirectML{
device_id: Some(1)
},
OrtExecutionProvider::CPU, // Fallback
]) ;
程序可顺利通过编译,在运行代码时,前期几个识别任务执行没有问题(GPU按预期运行),过一会儿,程序执行就报错了,提示以下错误:
adapter execution failed: TextDetectionAdapter: failed to detect text (score_threshold=0.3, box_threshold=0.6, unclip_ratio=2),我排查了代码,没有发现问题,请问该如何修复该问题呢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions