Matlab - CuDNN Error with MatConvNet











up vote
0
down vote

favorite












I am trying to use Matlab and Matconvnet for Deep Learning and particularly to work on this implementation : Finding Tiny Faces.



I am working on Ubuntu 16.04, with Cuda 9 (GTX 1080Ti). For the implementation, I am using Matlab R2017b. I have follow the instructions to install and compile Matconvnet vl_compilenn('enableImreadJpeg', true) and I have passed the furnished test.



When I try to run the first function bboxes = tiny_face_detector('data/demo/selfie.jpg', './selfie.png', 0.5, 0.1, 1) I have an error with CuDNN :



Error using vl_nnconv
forward: cuDNN error [cudnn:
"/home/alexattia/Work/RecVis/tiny/matconvnet/matlab/src/bits/impl/nnconv_cudnn.cu":141
(CUDNN_STATUS_BAD_PARAM)]

Error in dagnn.Conv/forward (line 11)
outputs{1} = vl_nnconv(...

Error in dagnn.Layer/forwardAdvanced (line 85)
outputs = obj.forward(inputs, {net.params(par).value}) ;

Error in dagnn.DagNN/eval (line 91)
obj.layers(l).block.forwardAdvanced(obj.layers(l)) ;

Error in tiny_face_detector (line 130)
net.eval(inputs);


Do you have any idea how to solve this ?

Thank you very much in advance.










share|improve this question




























    up vote
    0
    down vote

    favorite












    I am trying to use Matlab and Matconvnet for Deep Learning and particularly to work on this implementation : Finding Tiny Faces.



    I am working on Ubuntu 16.04, with Cuda 9 (GTX 1080Ti). For the implementation, I am using Matlab R2017b. I have follow the instructions to install and compile Matconvnet vl_compilenn('enableImreadJpeg', true) and I have passed the furnished test.



    When I try to run the first function bboxes = tiny_face_detector('data/demo/selfie.jpg', './selfie.png', 0.5, 0.1, 1) I have an error with CuDNN :



    Error using vl_nnconv
    forward: cuDNN error [cudnn:
    "/home/alexattia/Work/RecVis/tiny/matconvnet/matlab/src/bits/impl/nnconv_cudnn.cu":141
    (CUDNN_STATUS_BAD_PARAM)]

    Error in dagnn.Conv/forward (line 11)
    outputs{1} = vl_nnconv(...

    Error in dagnn.Layer/forwardAdvanced (line 85)
    outputs = obj.forward(inputs, {net.params(par).value}) ;

    Error in dagnn.DagNN/eval (line 91)
    obj.layers(l).block.forwardAdvanced(obj.layers(l)) ;

    Error in tiny_face_detector (line 130)
    net.eval(inputs);


    Do you have any idea how to solve this ?

    Thank you very much in advance.










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am trying to use Matlab and Matconvnet for Deep Learning and particularly to work on this implementation : Finding Tiny Faces.



      I am working on Ubuntu 16.04, with Cuda 9 (GTX 1080Ti). For the implementation, I am using Matlab R2017b. I have follow the instructions to install and compile Matconvnet vl_compilenn('enableImreadJpeg', true) and I have passed the furnished test.



      When I try to run the first function bboxes = tiny_face_detector('data/demo/selfie.jpg', './selfie.png', 0.5, 0.1, 1) I have an error with CuDNN :



      Error using vl_nnconv
      forward: cuDNN error [cudnn:
      "/home/alexattia/Work/RecVis/tiny/matconvnet/matlab/src/bits/impl/nnconv_cudnn.cu":141
      (CUDNN_STATUS_BAD_PARAM)]

      Error in dagnn.Conv/forward (line 11)
      outputs{1} = vl_nnconv(...

      Error in dagnn.Layer/forwardAdvanced (line 85)
      outputs = obj.forward(inputs, {net.params(par).value}) ;

      Error in dagnn.DagNN/eval (line 91)
      obj.layers(l).block.forwardAdvanced(obj.layers(l)) ;

      Error in tiny_face_detector (line 130)
      net.eval(inputs);


      Do you have any idea how to solve this ?

      Thank you very much in advance.










      share|improve this question















      I am trying to use Matlab and Matconvnet for Deep Learning and particularly to work on this implementation : Finding Tiny Faces.



      I am working on Ubuntu 16.04, with Cuda 9 (GTX 1080Ti). For the implementation, I am using Matlab R2017b. I have follow the instructions to install and compile Matconvnet vl_compilenn('enableImreadJpeg', true) and I have passed the furnished test.



      When I try to run the first function bboxes = tiny_face_detector('data/demo/selfie.jpg', './selfie.png', 0.5, 0.1, 1) I have an error with CuDNN :



      Error using vl_nnconv
      forward: cuDNN error [cudnn:
      "/home/alexattia/Work/RecVis/tiny/matconvnet/matlab/src/bits/impl/nnconv_cudnn.cu":141
      (CUDNN_STATUS_BAD_PARAM)]

      Error in dagnn.Conv/forward (line 11)
      outputs{1} = vl_nnconv(...

      Error in dagnn.Layer/forwardAdvanced (line 85)
      outputs = obj.forward(inputs, {net.params(par).value}) ;

      Error in dagnn.DagNN/eval (line 91)
      obj.layers(l).block.forwardAdvanced(obj.layers(l)) ;

      Error in tiny_face_detector (line 130)
      net.eval(inputs);


      Do you have any idea how to solve this ?

      Thank you very much in advance.







      matlab ubuntu deep-learning cudnn






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 19 '17 at 11:26









      talonmies

      58.9k17126192




      58.9k17126192










      asked Dec 19 '17 at 11:10









      A. Attia

      4571820




      4571820
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Most probably, your CPU setting is still on. If you have changed that to GPU, the images and and params of the network need to be of type gpuArray.






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47885657%2fmatlab-cudnn-error-with-matconvnet%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Most probably, your CPU setting is still on. If you have changed that to GPU, the images and and params of the network need to be of type gpuArray.






            share|improve this answer

























              up vote
              0
              down vote













              Most probably, your CPU setting is still on. If you have changed that to GPU, the images and and params of the network need to be of type gpuArray.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Most probably, your CPU setting is still on. If you have changed that to GPU, the images and and params of the network need to be of type gpuArray.






                share|improve this answer












                Most probably, your CPU setting is still on. If you have changed that to GPU, the images and and params of the network need to be of type gpuArray.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 18 hours ago









                h612

                619




                619






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47885657%2fmatlab-cudnn-error-with-matconvnet%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Contact image not getting when fetch all contact list from iPhone by CNContact

                    count number of partitions of a set with n elements into k subsets

                    A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks