Giter Site home page Giter Site logo

run detectnet failed,error "no kernel image is available for execution on the device" at forward_yolo_layer_gpu about caffe-yolov3 HOT 9 OPEN

chenyingpeng avatar chenyingpeng commented on May 22, 2024
run detectnet failed,error "no kernel image is available for execution on the device" at forward_yolo_layer_gpu

from caffe-yolov3.

Comments (9)

anhuipl2010 avatar anhuipl2010 commented on May 22, 2024

which version of caffe is you used?Can you share the right version of caffe's link

from caffe-yolov3.

ChenYingpeng avatar ChenYingpeng commented on May 22, 2024

This may be your cuda problem,please check it.

from caffe-yolov3.

anhuipl2010 avatar anhuipl2010 commented on May 22, 2024

this error occurred at first line do 'copy_gpu(l.batchl.inputs,(float)input,1,l.output_gpu,1);' in function "forward_yolo_layer_gpu" in file yolo_layer.cpp .I add some print in this function than found it.

86 void forward_yolo_layer_gpu(const float* input,layer l)
87 {
88 printf("before 11111\n");
89 copy_gpu(l.batchl.inputs,(float)input,1,l.output_gpu,1);
90 printf("after 11111\n");
91 int b,n;
92 for(b = 0;b < l.batch;++b){
93 for(n =0;n< l.n;++n){
94 int index = entry_index(l,b,nl.wl.h,0);
95 activate_array_gpu(l.output_gpu + index, 2l.wl.h,LOGISTIC);
96 index = entry_index(l,b,nl.wl.h,4);
97 activate_array_gpu(l.output_gpu + index,(1 + l.classes)l.wl.h,LOGISTIC);
98 }
99 }
100 cuda_pull_array(l.output_gpu,l.output,l.batch*l.outputs);
101 }

after run detectnet ,found the error as follows:

I0824 18:42:00.235325 16998 detectnet.cpp:76] Input data layer channels is 3
I0824 18:42:00.235347 16998 detectnet.cpp:77] Input data layer width is 416
I0824 18:42:00.235353 16998 detectnet.cpp:78] Input data layer height is 416
output blob1 shape c= 255, h = 13, w = 13
output blob2 shape c= 255, h = 26, w = 26
output blob3 shape c= 255, h = 52, w = 52
before 11111
CUDA Error: no kernel image is available for execution on the device
detectnet: /home/LiuQiang/ext_work/caffe-yolov3/cuda.cpp:30: void check_error(cudaError_t): Assertion `0' failed.
已放弃 (核心已转储)

from caffe-yolov3.

anhuipl2010 avatar anhuipl2010 commented on May 22, 2024

this code clone from your github caffe-yolov3 project,no changed or fixed

from caffe-yolov3.

ChenYingpeng avatar ChenYingpeng commented on May 22, 2024

May be something wrong with your pc cuda compute_sm? Please check your pc cuda compute_sm,for example this below in my CMakeList.txt.
` # setup CUDA
find_package(CUDA)

set(
CUDA_NVCC_FLAGS
${CUDA_NVCC_FLAGS};
-O3
-gencode arch=compute_53,code=sm_53 #tegra tx1
-gencode arch=compute_61,code=sm_61 #gtx 1060
-gencode arch=compute_62,code=sm_62 #tegra tx2
)`

from caffe-yolov3.

anhuipl2010 avatar anhuipl2010 commented on May 22, 2024

Yes,i check it ,then run ok.Thanks.But The speed is slowly than org

from caffe-yolov3.

ChenYingpeng avatar ChenYingpeng commented on May 22, 2024

Yes ,caffe is slower than darkent.I suggest that you can speed it with tensorrt.

from caffe-yolov3.

PiyalGeorge avatar PiyalGeorge commented on May 22, 2024

Hi @anhuipl2010 , How much speed did you get for this? I mean FPS.

from caffe-yolov3.

luthfianto avatar luthfianto commented on May 22, 2024

Hi @anhuipl2010, How much FPS did you get for this?

from caffe-yolov3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.