Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

dnn setup problem

Hello,

I just upgraded my system to a new nvidea graphic card and my example code which was reading a darknet model started crashing. The same program runs fine in the cloud(no gpu).

I am assuming something is wrong with my open-cl runtime? Any suggestions on this could be helpful. Thx a lot(i always run into complicated things) + Greetings, Holger

    String imageFilePath = "C:\\development\\opencvjava\\test.png";
    String modelConfiguration = "C:\\development\\opencvjava\\voc.cfg";
    String modelBinary = "C:\\development\\opencvjava\\yolov2-voc.weights";
    try {
        classNames = Files.readAllLines(Paths.get("C:\\development\\opencvjava\\voc.names"));
    } catch (IOException e) {
        throw new RuntimeException(e);
    }

    // import the Caffe model
    net = readNetFromDarknet(modelConfiguration, modelBinary);
    System.err.println("Hello cloud---");

    Mat img = imread(imageFilePath);
    cvtColor(img, img, Imgproc.COLOR_BGRA2BGR);

    //read in blob
    Mat blob = blobFromImage(img, 1 / 255.F, new Size(416, 416), new Scalar(0), true, false);
    net.setInput(blob);

Output

Process finished with exit code -1073740791 (0xC0000409)



enter code here

dnn setup problem

Hello,

I just upgraded my system to a new nvidea graphic card and my example code which was reading a darknet model started crashing. The same program runs fine in the cloud(no gpu).

I am assuming something is wrong with my open-cl runtime? Any suggestions on this could be helpful. Thx a lot(i always run into complicated things) + Greetings, Holger

    String imageFilePath = "C:\\development\\opencvjava\\test.png";
    String modelConfiguration = "C:\\development\\opencvjava\\voc.cfg";
    String modelBinary = "C:\\development\\opencvjava\\yolov2-voc.weights";
    try {
        classNames = Files.readAllLines(Paths.get("C:\\development\\opencvjava\\voc.names"));
    } catch (IOException e) {
        throw new RuntimeException(e);
    }

    // import the Caffe model
    net = readNetFromDarknet(modelConfiguration, modelBinary);
    System.err.println("Hello cloud---");

    Mat img = imread(imageFilePath);
    cvtColor(img, img, Imgproc.COLOR_BGRA2BGR);

    //read in blob
    Mat blob = blobFromImage(img, 1 / 255.F, new Size(416, 416), new Scalar(0), true, false);
    net.setInput(blob);

Output

Process finished with exit code -1073740791 (0xC0000409)



enter code here

dnn setup problem

Hello,

I just upgraded my system to a new nvidea graphic card card(gtx 1050 TI - windows7) and my example code which was reading a darknet model started crashing. The same program runs fine in the cloud(no gpu).

I am assuming something is wrong with my open-cl runtime? Any suggestions on this could be helpful. Thx a lot(i always run into complicated things) + Greetings, Holger

    String imageFilePath = "C:\\development\\opencvjava\\test.png";
    String modelConfiguration = "C:\\development\\opencvjava\\voc.cfg";
    String modelBinary = "C:\\development\\opencvjava\\yolov2-voc.weights";
    try {
        classNames = Files.readAllLines(Paths.get("C:\\development\\opencvjava\\voc.names"));
    } catch (IOException e) {
        throw new RuntimeException(e);
    }

    // import the Caffe model
    net = readNetFromDarknet(modelConfiguration, modelBinary);
    System.err.println("Hello cloud---");

    Mat img = imread(imageFilePath);
    cvtColor(img, img, Imgproc.COLOR_BGRA2BGR);

    //read in blob
    Mat blob = blobFromImage(img, 1 / 255.F, new Size(416, 416), new Scalar(0), true, false);
    net.setInput(blob);

Output

Process finished with exit code -1073740791 (0xC0000409)

dnn setup problem

Hello,

I just upgraded my system to a new nvidea graphic card(gtx 1050 TI - windows7) and my example code which was reading a darknet model started crashing. The same program was running fine before and also still runs fine in the cloud(no gpu).

I am assuming something is wrong with my open-cl runtime? Any suggestions on this could be helpful. Thx a lot(i always run into complicated things) + Greetings, Holger

    String imageFilePath = "C:\\development\\opencvjava\\test.png";
    String modelConfiguration = "C:\\development\\opencvjava\\voc.cfg";
    String modelBinary = "C:\\development\\opencvjava\\yolov2-voc.weights";
    try {
        classNames = Files.readAllLines(Paths.get("C:\\development\\opencvjava\\voc.names"));
    } catch (IOException e) {
        throw new RuntimeException(e);
    }

    // import the Caffe model
    net = readNetFromDarknet(modelConfiguration, modelBinary);
    System.err.println("Hello cloud---");

    Mat img = imread(imageFilePath);
    cvtColor(img, img, Imgproc.COLOR_BGRA2BGR);

    //read in blob
    Mat blob = blobFromImage(img, 1 / 255.F, new Size(416, 416), new Scalar(0), true, false);
    net.setInput(blob);

Output

Process finished with exit code -1073740791 (0xC0000409)
click to hide/show revision 5
retagged

updated 2018-05-18 04:00:10 -0600

berak gravatar image

dnn setup problem

Hello,

I just upgraded my system to a new nvidea graphic card(gtx 1050 TI - windows7) and my example code which was reading a darknet model started crashing. The same program was running fine before and also still runs fine in the cloud(no gpu).

I am assuming something is wrong with my open-cl runtime? Any suggestions on this could be helpful. Thx a lot(i always run into complicated things) + Greetings, Holger

    String imageFilePath = "C:\\development\\opencvjava\\test.png";
    String modelConfiguration = "C:\\development\\opencvjava\\voc.cfg";
    String modelBinary = "C:\\development\\opencvjava\\yolov2-voc.weights";
    try {
        classNames = Files.readAllLines(Paths.get("C:\\development\\opencvjava\\voc.names"));
    } catch (IOException e) {
        throw new RuntimeException(e);
    }

    // import the Caffe model
    net = readNetFromDarknet(modelConfiguration, modelBinary);
    System.err.println("Hello cloud---");

    Mat img = imread(imageFilePath);
    cvtColor(img, img, Imgproc.COLOR_BGRA2BGR);

    //read in blob
    Mat blob = blobFromImage(img, 1 / 255.F, new Size(416, 416), new Scalar(0), true, false);
    net.setInput(blob);

Output

Process finished with exit code -1073740791 (0xC0000409)

dnn setup problem

Hello,

I just upgraded my system to a new nvidea graphic card(gtx 1050 TI - windows7) and my example code which was reading a darknet model started crashing. The same program was running fine before and also still runs fine in the cloud(no gpu).

I am assuming something is wrong with my open-cl runtime? Any suggestions on this could be helpful. Thx a lot(i always run into complicated things) + Greetings, Holger

    String imageFilePath = "C:\\development\\opencvjava\\test.png";
    String modelConfiguration = "C:\\development\\opencvjava\\voc.cfg";
    String modelBinary = "C:\\development\\opencvjava\\yolov2-voc.weights";
    try {
        classNames = Files.readAllLines(Paths.get("C:\\development\\opencvjava\\voc.names"));
    } catch (IOException e) {
        throw new RuntimeException(e);
    }

    // import the Caffe model
    net = readNetFromDarknet(modelConfiguration, modelBinary);
    System.err.println("Hello cloud---");

    Mat img = imread(imageFilePath);
    cvtColor(img, img, Imgproc.COLOR_BGRA2BGR);

    //read in blob
    Mat blob = blobFromImage(img, 1 / 255.F, new Size(416, 416), new Scalar(0), true, false);
    net.setInput(blob);

    // classify the image by applying the blob on the net
    long start = System.currentTimeMillis();
    //here program crashes
    Mat detectionMat = net.forward();//compute output
    long end = System.currentTimeMillis();
    System.err.println("net detection took: "+(end-start)+"ms");

Output

Process finished with exit code -1073740791 (0xC0000409)