AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.65k stars 7.96k forks source link

CUDA Error: no kernel image is available for execution on the device #8280

Open eungbin opened 2 years ago

eungbin commented 2 years ago

I'm install darknet follow command : git clone --recursive https://github.com/AlexeyAB/darknet

and, #### mkdir build_release, cd build_release

cmake ..

cmake --build . --target install --parallel 8

and start command :

./darknet detector train data/landing_pad.data cfg/yolov3-tiny-landing_pad.cfg

running command, I see that error message :

CUDA status Error: file: /home/eungbin/darknet/src/blas_kernels.cu : () : line: 859 : build time: Dec 8 2021 - 00:46:16

CUDA Error: no kernel image is available for execution on the device

Darknet error location: /home/eungbin/darknet/src/dark_cuda.c, check_error, line #69

CUDA Error: no kernel image is available for execution on the device: 자원이 일시적으로 사용 불가능함

My System :

OS : Ubuntu 18.04 LTS

GPU : Geforce GTX 960M

Here is my terminal log...

eungbin@eungbin-INVALID:~/darknet$ ./darknet detector train data/landing_pad.data cfg/yolov3-tiny-landing_pad.cfg CUDA-version: 11040 (11040), cuDNN: 8.2.2, GPU count: 1
OpenCV version: 4.2.0 yolov3-tiny-landing_pad 0 : compute_capability = 500, cudnn_half = 0, GPU: NVIDIA GeForce GTX 960M net.optimized_memory = 0 mini_batch = 4, batch = 64, time_steps = 1, train = 1 layer filters size/strd(dil) input output 0 Create CUDA-stream - 0 Create cudnn-handle 0 conv 16 3 x 3/ 1 416 x 416 x 3 -> 416 x 416 x 16 0.150 BF 1 max 2x 2/ 2 416 x 416 x 16 -> 208 x 208 x 16 0.003 BF 2 conv 32 3 x 3/ 1 208 x 208 x 16 -> 208 x 208 x 32 0.399 BF 3 max 2x 2/ 2 208 x 208 x 32 -> 104 x 104 x 32 0.001 BF 4 conv 64 3 x 3/ 1 104 x 104 x 32 -> 104 x 104 x 64 0.399 BF 5 max 2x 2/ 2 104 x 104 x 64 -> 52 x 52 x 64 0.001 BF 6 conv 128 3 x 3/ 1 52 x 52 x 64 -> 52 x 52 x 128 0.399 BF 7 max 2x 2/ 2 52 x 52 x 128 -> 26 x 26 x 128 0.000 BF 8 conv 256 3 x 3/ 1 26 x 26 x 128 -> 26 x 26 x 256 0.399 BF 9 max 2x 2/ 2 26 x 26 x 256 -> 13 x 13 x 256 0.000 BF 10 conv 512 3 x 3/ 1 13 x 13 x 256 -> 13 x 13 x 512 0.399 BF 11 max 2x 2/ 1 13 x 13 x 512 -> 13 x 13 x 512 0.000 BF 12 conv 1024 3 x 3/ 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 13 conv 256 1 x 1/ 1 13 x 13 x1024 -> 13 x 13 x 256 0.089 BF 14 conv 512 3 x 3/ 1 13 x 13 x 256 -> 13 x 13 x 512 0.399 BF 15 conv 18 1 x 1/ 1 13 x 13 x 512 -> 13 x 13 x 18 0.003 BF 16 yolo [yolo] params: iou loss: mse (2), iou_norm: 0.75, obj_norm: 1.00, cls_norm: 1.00, delta_norm: 1.00, scale_x_y: 1.00 17 route 13 -> 13 x 13 x 256 18 conv 128 1 x 1/ 1 13 x 13 x 256 -> 13 x 13 x 128 0.011 BF 19 upsample 2x 13 x 13 x 128 -> 26 x 26 x 128 20 route 19 8 -> 26 x 26 x 384 21 conv 256 3 x 3/ 1 26 x 26 x 384 -> 26 x 26 x 256 1.196 BF 22 conv 18 1 x 1/ 1 26 x 26 x 256 -> 26 x 26 x 18 0.006 BF 23 yolo [yolo] params: iou loss: mse (2), iou_norm: 0.75, obj_norm: 1.00, cls_norm: 1.00, delta_norm: 1.00, scale_x_y: 1.00 Total BFLOPS 5.448 avg_outputs = 324846 Allocate additional workspace_size = 132.12 MB Learning Rate: 0.001, Momentum: 0.9, Decay: 0.0005 Detection layer: 16 - type = 28 Detection layer: 23 - type = 28 If error occurs - run training with flag: -dont_show Resizing, random_coef = 1.40

608 x 608 Create 6 permanent cpu-threads try to allocate additional workspace_size = 97.62 MB CUDA allocate done! Loaded: 0.000081 seconds CUDA status Error: file: /home/eungbin/darknet/src/blas_kernels.cu : () : line: 859 : build time: Dec 8 2021 - 00:46:16

CUDA Error: no kernel image is available for execution on the device Darknet error location: /home/eungbin/darknet/src/dark_cuda.c, check_error, line #69 CUDA Error: no kernel image is available for execution on the device: 자원이 일시적으로 사용 불가능함

eungbin commented 2 years ago

Add My System Info : nvidia graphics drivers : nvidia-driver-470.86 CUDA version : 11.4 cudnn version : 8.2.2