Process melspectrograms with convolutional neural network2019 Community Moderator ElectionNeural network with flexible number of inputs?Convolutional Neural Network not learning EEG dataHow does a convolutional ply differ from an ordinary convolutional network?python - What is the format of the WAV file for a Text to Speech Neural Network?Invalid Argument Error when running simple Convolutional Neural NetworkMulti-inputs Convolutional Neural Network takes different number of imagesWhat is the effect of highly correlated data on a Convolutional Neural Network?Print the prediction of convolutional neural networkMulti-input Convolutional Neural Network for Images Classificationprocess images with spiking neural network

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?

Can I interfere when another PC is about to be attacked?

Writing rule which states that two causes for the same superpower is bad writing

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

Why linear maps act like matrix multiplication?

How do I create uniquely male characters?

How old can references or sources in a thesis be?

What is the command to reset a PC without deleting any files

Dragon forelimb placement

Why is the design of haulage companies so “special”?

Is it possible to rebuild the bike frame (to make it lighter) by welding aluminum tubes

Email Account under attack (really) - anything I can do?

Motorized valve interfering with button?

Underlining section titles

Type 1 Error & Type 2 Error's pregnancy test analogy: is it legit?

Is the language p and n are natural numbers and there's no prime number in [p,p+n] belongs to NP class?

Why don't electron-positron collisions release infinite energy?

How much RAM could one put in a typical 80386 setup?

The use of multiple foreign keys on same column in SQL Server

Explain the parameters before and after @ in the terminal prompt

Can I make popcorn with any corn?

What do the dots in this tr command do: tr .............A-Z A-ZA-Z <<< "JVPQBOV" (with 13 dots)

XeLaTeX and pdfLaTeX ignore hyphenation

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?



Process melspectrograms with convolutional neural network



2019 Community Moderator ElectionNeural network with flexible number of inputs?Convolutional Neural Network not learning EEG dataHow does a convolutional ply differ from an ordinary convolutional network?python - What is the format of the WAV file for a Text to Speech Neural Network?Invalid Argument Error when running simple Convolutional Neural NetworkMulti-inputs Convolutional Neural Network takes different number of imagesWhat is the effect of highly correlated data on a Convolutional Neural Network?Print the prediction of convolutional neural networkMulti-input Convolutional Neural Network for Images Classificationprocess images with spiking neural network










1












$begingroup$


I am trying to do audio classification with a convolutional neural network. There are six classes. With librosa, I have created melspectrograms for the one second long .wav audio files. It returned 640x480 .jpg files.
My question is now how to proceed with the input, since I think it is too large as input for the network. If so, what would an adequate resolution be? Something around 60x60? Does it even have to be quadratic?



Options from my perspective:



  1. Re-encode melspectrograms from librosa with smaller resolution

  2. Use cv2 and simply do a cv2.resize() before passing it to the input layer.

  3. Leave the resolution untouched, and introduce more convolutional layers.

  4. ?









share|improve this question









$endgroup$




bumped to the homepage by Community 3 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    1












    $begingroup$


    I am trying to do audio classification with a convolutional neural network. There are six classes. With librosa, I have created melspectrograms for the one second long .wav audio files. It returned 640x480 .jpg files.
    My question is now how to proceed with the input, since I think it is too large as input for the network. If so, what would an adequate resolution be? Something around 60x60? Does it even have to be quadratic?



    Options from my perspective:



    1. Re-encode melspectrograms from librosa with smaller resolution

    2. Use cv2 and simply do a cv2.resize() before passing it to the input layer.

    3. Leave the resolution untouched, and introduce more convolutional layers.

    4. ?









    share|improve this question









    $endgroup$




    bumped to the homepage by Community 3 hours ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      1












      1








      1





      $begingroup$


      I am trying to do audio classification with a convolutional neural network. There are six classes. With librosa, I have created melspectrograms for the one second long .wav audio files. It returned 640x480 .jpg files.
      My question is now how to proceed with the input, since I think it is too large as input for the network. If so, what would an adequate resolution be? Something around 60x60? Does it even have to be quadratic?



      Options from my perspective:



      1. Re-encode melspectrograms from librosa with smaller resolution

      2. Use cv2 and simply do a cv2.resize() before passing it to the input layer.

      3. Leave the resolution untouched, and introduce more convolutional layers.

      4. ?









      share|improve this question









      $endgroup$




      I am trying to do audio classification with a convolutional neural network. There are six classes. With librosa, I have created melspectrograms for the one second long .wav audio files. It returned 640x480 .jpg files.
      My question is now how to proceed with the input, since I think it is too large as input for the network. If so, what would an adequate resolution be? Something around 60x60? Does it even have to be quadratic?



      Options from my perspective:



      1. Re-encode melspectrograms from librosa with smaller resolution

      2. Use cv2 and simply do a cv2.resize() before passing it to the input layer.

      3. Leave the resolution untouched, and introduce more convolutional layers.

      4. ?






      python audio-recognition






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 12:14









      harrisonfooordharrisonfooord

      62




      62





      bumped to the homepage by Community 3 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 3 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$


          Leave the resolution untouched, and introduce more convolutional
          layers.




          This should be the next step. Two primary reasons for it :



          1. This should reduce number of trainable parameters

          2. Model can learn more abstract features





          share|improve this answer









          $endgroup$













            Your Answer





            StackExchange.ifUsing("editor", function ()
            return StackExchange.using("mathjaxEditing", function ()
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            );
            );
            , "mathjax-editing");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "557"
            ;
            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2fdatascience.stackexchange.com%2fquestions%2f46926%2fprocess-melspectrograms-with-convolutional-neural-network%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









            0












            $begingroup$


            Leave the resolution untouched, and introduce more convolutional
            layers.




            This should be the next step. Two primary reasons for it :



            1. This should reduce number of trainable parameters

            2. Model can learn more abstract features





            share|improve this answer









            $endgroup$

















              0












              $begingroup$


              Leave the resolution untouched, and introduce more convolutional
              layers.




              This should be the next step. Two primary reasons for it :



              1. This should reduce number of trainable parameters

              2. Model can learn more abstract features





              share|improve this answer









              $endgroup$















                0












                0








                0





                $begingroup$


                Leave the resolution untouched, and introduce more convolutional
                layers.




                This should be the next step. Two primary reasons for it :



                1. This should reduce number of trainable parameters

                2. Model can learn more abstract features





                share|improve this answer









                $endgroup$




                Leave the resolution untouched, and introduce more convolutional
                layers.




                This should be the next step. Two primary reasons for it :



                1. This should reduce number of trainable parameters

                2. Model can learn more abstract features






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 8 at 13:19









                Shamit VermaShamit Verma

                1,4291214




                1,4291214



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Data Science Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f46926%2fprocess-melspectrograms-with-convolutional-neural-network%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

                    Ружовы пелікан Змест Знешні выгляд | Пашырэнне | Асаблівасці біялогіі | Літаратура | НавігацыяДагледжаная версіяправерана1 зменаДагледжаная версіяправерана1 змена/ 22697590 Сістэматыкана ВіківідахВыявына Вікісховішчы174693363011049382

                    ValueError: Error when checking input: expected conv2d_13_input to have shape (3, 150, 150) but got array with shape (150, 150, 3)2019 Community Moderator ElectionError when checking : expected dense_1_input to have shape (None, 5) but got array with shape (200, 1)Error 'Expected 2D array, got 1D array instead:'ValueError: Error when checking input: expected lstm_41_input to have 3 dimensions, but got array with shape (40000,100)ValueError: Error when checking target: expected dense_1 to have shape (7,) but got array with shape (1,)ValueError: Error when checking target: expected dense_2 to have shape (1,) but got array with shape (0,)Keras exception: ValueError: Error when checking input: expected conv2d_1_input to have shape (150, 150, 3) but got array with shape (256, 256, 3)Steps taking too long to completewhen checking input: expected dense_1_input to have shape (13328,) but got array with shape (317,)ValueError: Error when checking target: expected dense_3 to have shape (None, 1) but got array with shape (7715, 40000)Keras exception: Error when checking input: expected dense_input to have shape (2,) but got array with shape (1,)

                    Illegal assignment from SObject to ContactFetching String, Id from Map - Illegal Assignment Id to Field / ObjectError: Compile Error: Illegal assignment from String to BooleanError: List has no rows for assignment to SObjectError on Test Class - System.QueryException: List has no rows for assignment to SObjectRemote action problemDML requires SObject or SObject list type error“Illegal assignment from List to List”Test Class Fail: Batch Class: System.QueryException: List has no rows for assignment to SObjectMapping to a user'List has no rows for assignment to SObject' Mystery