[DL] How to calculate the number of parameters in a convolutional neural network? Some examples

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 49

  • @urarakono442
    @urarakono442 Год назад +2

    I have long been confused about how to count the number of parameters in CNN, but thanks to lots of examples in this video, I have finally understood it! Thank you!

  • @nagamanitenali2818
    @nagamanitenali2818 11 месяцев назад +1

    Very good explanation Sir... I searched many links but didn't find an appropriate video to calculate no.of channels.. this is the best video . Thanks a lot

  • @ryanp9441
    @ryanp9441 5 месяцев назад

    this is soooooooo gooood. Highly recommend to anyone who wants to understand the # of parameters in CNN

  • @mhadnanali
    @mhadnanali 2 года назад +17

    How 10x10 turns to 8x8, you should have explained. anyway i figured it out formula is output= n-f+1 while n is input and f is filter.

    • @TheMatteoAntonini
      @TheMatteoAntonini Год назад +4

      The formula for output shape is: [(W-K+2P)/S]+1. Where: W is the shape of input image (10), K is the shape of kernel, p is the dimension of padding (0) and is the measure of stride (1). Result:10-3+1=8.

    • @parajshirsath1868
      @parajshirsath1868 Год назад

      @@TheMatteoAntonini Thanks Buddy...I was bit confused for the same value of 8. You made it clear ❣️

    • @samuelgbashi8969
      @samuelgbashi8969 8 месяцев назад

      Good question. Thank you.

  • @高造擎
    @高造擎 2 года назад +1

    This video is amazing. I have been searching for explanation like this, and those fancy tutorial are pretty disappointing. Thank you Sir!

  • @kk-kk2vk
    @kk-kk2vk 3 года назад +9

    I can't undrestand,help me please.
    Why when our input is 10x10 dimentional and then we apply one 3x3 filter our output becomes 8x8?

    • @mamanghachi8086
      @mamanghachi8086 3 года назад +18

      because its use 'valid' padding configuration. you can calculate output with formula output = ((n+2p-f)/s) + 1 with n=number of input=10, p=padding=0, f=filter=3, and s=stride=1 which we get output = (10+0-3)/1 +1 = 8

  • @varmabhaveshkumarnareshbha7309
    @varmabhaveshkumarnareshbha7309 2 года назад +2

    Finally solved all doubt , Crystal Clear

  • @tanishkaachaturvedi2173
    @tanishkaachaturvedi2173 Год назад +1

    This was such a brilliant explanation. Thank you so much!!!!

  • @iyshwaryakannan6677
    @iyshwaryakannan6677 Год назад +1

    Awesome sir, most wanted explanations with more samples.

  • @shubhamsongire6712
    @shubhamsongire6712 2 года назад +1

    Thank you very much. Now all doubts are clear.

  • @Nitish_shrivas
    @Nitish_shrivas 6 месяцев назад +1

    great explanation

  • @lchunleo
    @lchunleo Год назад

    thank you. this is very informative and clear my doubts

  • @lewisyuu
    @lewisyuu 2 года назад +1

    Where does the number 8 come from in the first example?

  • @katsamapolpetchpol9346
    @katsamapolpetchpol9346 2 года назад +1

    Thank you for this masterpiece explanatory.

  • @PawanSingh-xk2cj
    @PawanSingh-xk2cj 3 года назад +2

    how weight is initialized in the 1d conv, if it is not initialized what is the default value.

  • @usamazahid1
    @usamazahid1 2 года назад +2

    awesome video.....10/10

  • @vahidfarrahi6799
    @vahidfarrahi6799 2 года назад +1

    Well explained

  • @kartiksoni5877
    @kartiksoni5877 2 года назад +1

    Amazing and detailed explanation

  • @sandravinaykumar570
    @sandravinaykumar570 2 года назад +1

    EXCELLENT SIR

  • @enderBenBen
    @enderBenBen 2 года назад +1

    Thank you! This video is helping me do revision!

  • @diliprajdasari4219
    @diliprajdasari4219 2 года назад +2

    That was wonderful explanation. Thank you. But What if the input image's width and height are different? Like 228x284. What happens to the output's width and height?

    • @ProfessorB70
      @ProfessorB70 2 года назад

      You should be able to resize it to like 150x150

    • @AjeetVermalko
      @AjeetVermalko Год назад

      you might get an output of size 226x282 ( n will be different for height and width, and asssume filter size 3x3 and stride=1)

  • @chhayasuratwala7424
    @chhayasuratwala7424 2 года назад +1

    sir you are awesome

  • @muhammadmahadkhaliq6809
    @muhammadmahadkhaliq6809 2 года назад +1

    Thank you so much!

  • @aarifansari9097
    @aarifansari9097 2 года назад +1

    Thank you

  • @Jinyang-p7c
    @Jinyang-p7c Год назад

    Is the example 4 incorrect? You have 3 by 3 filters with a depth of 5, should not that be (3*3*5+1)*8

  • @jaggujaggu2922
    @jaggujaggu2922 Год назад +1

    Convolution2D (8, 3) implies that we are having 8 3x3 filters. My question is what kind filters they are, all same or all different. If filters are different who decides the filters?

    • @JamesLu-q7n
      @JamesLu-q7n Год назад

      they are different filters initially provided by the program (from keras package for example), and each of them has a particular ability to extract local features from the input(like edge detection, cornor detection...)

  • @davidbranes2020
    @davidbranes2020 6 месяцев назад

    awesome!

  • @brbaral9569
    @brbaral9569 3 года назад +1

    Thank you Sir.

  • @katoka143
    @katoka143 2 года назад +1

    good video

  • @PhishEye1
    @PhishEye1 Год назад

    Thank you!

  • @risingresearchlab4793
    @risingresearchlab4793 Год назад +1

    Plz help me, why parameters is 128 and 25 in input shape 100,5 (example 4)

    • @AjeetVermalko
      @AjeetVermalko Год назад +1

      number of parameters are independent of input shape, they only calculated with the filter size and number of filters and additive bias to each filter. Input shape is useful while calculating output size, not the parametes.

  • @tsukuruuu
    @tsukuruuu 5 месяцев назад

    For Convolution layer :
    Number of Params = (filter width × filter height × input channels + 1) × number of filters
    For Fully Connected layer:
    Number of Params= (current layer neurons c * previous layer neurons p) + c.

  • @Jtube0101Mega
    @Jtube0101Mega 3 года назад +2

    Excellent! Thank you very much!

  • @tifatifam5838
    @tifatifam5838 2 года назад +1

    i understand, thank,
    fitur extraction cnn, great

  • @yessinekhanfir8404
    @yessinekhanfir8404 3 года назад +1

    THank youu

  • @jasonbourn29
    @jasonbourn29 Год назад

    Tnx

  • @2Kaleb
    @2Kaleb 3 года назад +7

    I love you

  • @bhavanishankar1483
    @bhavanishankar1483 8 месяцев назад

    👍

  • @sushantabaralistheonlyd3724
    @sushantabaralistheonlyd3724 3 года назад +1

    La aayo hai

  • @Flip1923
    @Flip1923 Год назад

    Thank You !