+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1982 G /usr/lib/xorg/Xorg 121MiB |
| 0 2362 G /usr/bin/gnome-shell 130MiB |
| 0 2595 C ...intellij-idea-ultimate/188/jbr/bin/java 127MiB |
| 0 11685 G /usr/lib/xorg/Xorg 679MiB |
| 0 11907 G /usr/bin/gnome-shell 377MiB |
| 0 12613 G ...uest-channel-token=13420851796485272370 293MiB |
| 0 13955 G ...uest-channel-token=11011036850236046953 56MiB |
| 0 32754 G ...intellij-idea-ultimate/188/jbr/bin/java 2MiB |
+-----------------------------------------------------------------------------+
Detailed description
Net net = Dnn.readNetFromDarknet(modelConfiguration, modelWeights)
throws:
Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.1.2-dev) /home/pdunn/opencv/modules/dnn/src/cuda4dnn/csl/cudnn/cudnn.hpp:56: error: (-217:Gpu API call) CUDNN_STATUS_NOT_INITIALIZED in function 'UniqueHandle'
]
at org.opencv.dnn.Dnn.readNetFromDarknet_1(Native Method)
at org.opencv.dnn.Dnn.readNetFromDarknet(Dnn.java:554)
at com.sl.Main.main(Main.java:75)
Steps to reproduce
Net net = Dnn.readNetFromDarknet(modelConfiguration, modelWeights);
System information (version)
General configuration for OpenCV 4.1.2-dev ===================================== Version control: 4.1.2-267-g8108fb0575 Extra modules: Version control (extra): 4.1.2-77-g7011e1b1 Platform: Timestamp: 2019-12-05T19:51:59Z Host: Linux 5.0.0-37-generic x86_64 CMake: 3.10.2 CMake generator: Unix Makefiles CMake build tool: /usr/bin/make Configuration: Release nvidia smi:
+-----------------------------------------------------------------------------+ | NVIDIA-SMI 418.87.01 Driver Version: 418.87.01 CUDA Version: 10.1 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 107... On | 00000000:01:00.0 Off | N/A | | N/A 59C P2 39W / N/A | 1793MiB / 8119MiB | 0% Default | +-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 1982 G /usr/lib/xorg/Xorg 121MiB | | 0 2362 G /usr/bin/gnome-shell 130MiB | | 0 2595 C ...intellij-idea-ultimate/188/jbr/bin/java 127MiB | | 0 11685 G /usr/lib/xorg/Xorg 679MiB | | 0 11907 G /usr/bin/gnome-shell 377MiB | | 0 12613 G ...uest-channel-token=13420851796485272370 293MiB | | 0 13955 G ...uest-channel-token=11011036850236046953 56MiB | | 0 32754 G ...intellij-idea-ultimate/188/jbr/bin/java 2MiB | +-----------------------------------------------------------------------------+
Detailed description
Net net = Dnn.readNetFromDarknet(modelConfiguration, modelWeights) throws: Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.1.2-dev) /home/pdunn/opencv/modules/dnn/src/cuda4dnn/csl/cudnn/cudnn.hpp:56: error: (-217:Gpu API call) CUDNN_STATUS_NOT_INITIALIZED in function 'UniqueHandle' ] at org.opencv.dnn.Dnn.readNetFromDarknet_1(Native Method) at org.opencv.dnn.Dnn.readNetFromDarknet(Dnn.java:554) at com.sl.Main.main(Main.java:75)
Steps to reproduce
Net net = Dnn.readNetFromDarknet(modelConfiguration, modelWeights);
with YoloV3 weights and config