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