Skip to content

换成RTX5060显卡后,原来用GPU模式的程序不支持运行 #166

@mrj763237942

Description

@mrj763237942

Describe the bug

RTX5060显卡,用的CUDA:v12.9.0,CUDnn:9.10
Sdcb.PaddleInference.runtime.win64.cu129_cudnn910_sm120
Sdcb.PaddleInferenc 3.0.1

报错信息:
System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
at Sdcb.PaddleInference.Native.PaddleNative.PD_PredictorCreate(IntPtr pd_config)
at Sdcb.PaddleInference.PaddleConfig.CreatePredictor()

Steps to reproduce the bug

` static Action detAction = PaddleDevice.Gpu(1024, 0, false, true, false);
public static PaddleOcrAll alls = new PaddleOcrAll(model, ocrAction)
{
AllowRotateDetection = true, /* 允许识别有角度的文字 /
Enable180Classification = true, /
允许识别旋转角度大于90度的文字 */
};

     static string modelDir = "Assest/Model"; // your model directory here        
     static byte[] programBuffer = ReadResourceAsBytes($"OCR_Web.Assest.Model.model.pdmodel");
     static byte[] paramsBuffer = ReadResourceAsBytes($"OCR_Web.Assest.Model.model.pdiparams");
     public static PaddleDetector detector = new PaddleDetector(PaddleConfig.FromMemoryModel(programBuffer, paramsBuffer), Path.Combine(modelDir, "infer_cfg.yml"), detAction);

`
创建PaddleDetector的时候报上面的错,已经用最新的版本了,是程序不支持RTX5060的显卡吗,之前在RTX4060的显卡环境上运行是可以执行的

Expected behavior

No response

Screenshots

No response

Release version

No response

IDE

No response

OS version

No response

Additional context

No response

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