9. VGG16 architecture and implementation

Поделиться
HTML-код
  • Опубликовано: 17 сен 2024
  • Here , I explain how VGG16 is constructed and how to code for the same..

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

  • @profdurgahere9007
    @profdurgahere9007 4 года назад +6

    This is perhaps the easiest of all the approaches available online. Good work.

  • @user-he3we8wt5n
    @user-he3we8wt5n 3 года назад +11

    This is the first lecture that tells me how to implement a VGG-based classifier. Great .

    • @ShriramVasudevan
      @ShriramVasudevan  3 года назад

      Thanks and glad you liked it

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

      @@ShriramVasudevan It looks there is small mistake at 2:06 . I guess we will have only 2 fc with 4096 and one softmax. But in the slide there are 3 fc 4096.

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      no mine is the first actually implementing

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

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

    This is the most lucid explanation about vgg16 implementation.Thank u so much Sir

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

    Sir, hats off to you for this clear n crisp implementation💯💯.

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

      Glad u liked it Farhan

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

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

    Well done, man, it's a "pocketbook" reference even on 2024, be proud!

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

    one of the best teacher here. thank you sir.

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

      Thanks Isha

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

      @@ShriramVasudevan sir I'm not able to find the pre trained model weights file "vggweights.h5". pls help me with that

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

    very well explained sir ... i saw many videos on the same topic but your way of explaining it was very easy and the best.

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

    Sir, your explanation is outstanding and simple

  • @swatimaste1906
    @swatimaste1906 3 года назад

    Thank you sir!! Your explanation was very easy to understand.

  • @Gamechanger..601
    @Gamechanger..601 4 года назад

    Liked before watching.. undoubtedly the video must be great..

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

    Thank you for sharing your valuable knowledge

  • @TravelersNextDoor
    @TravelersNextDoor 4 года назад +4

    I like the "pooing" layers. I believe that's unique.

    • @ShriramVasudevan
      @ShriramVasudevan  4 года назад +1

      Yes.

    • @rekapallipraveenkumar6643
      @rekapallipraveenkumar6643 3 года назад

      everything is indeed unique, that's what makes everything work in combination.

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

  • @aminurrahmanashik2786
    @aminurrahmanashik2786 3 года назад

    thanks for this amazing representation.

  • @shivajin_
    @shivajin_ 3 года назад

    @Shriram Vasudevan It looks there is small mistake at 2:06 . I guess we will have only 2 fc with 4096 and one softmax. But in the slide there are 3 fc 4096.

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

    Great video. I have only one question. What are the dimensions of your training and test images? Do they have to be 224*224 before you import them into the algorithm?

    • @sergyyoubi3739
      @sergyyoubi3739 2 года назад +5

      Yup! Training and Validation images should be 224x224 because vgg16 was trained with 224x224 images (ImageNet ) ! But they do not have to be 224x224 before feeding them to the CNN, you can resize them while augmenting the images with: img_generator = imgDirectory.flow_from_directory(target_size=(224, 224), ... )

  • @sunitathongam
    @sunitathongam 3 года назад

    Thanks for delivering such an informative lecture.
    You have written
    if output[0][0] > output[0][1]:
    print("cat")
    else:
    print("dog")
    How to write if-else loop of 5 classes?

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

  • @saurabhatram
    @saurabhatram 4 года назад

    Very nice explanation.

  • @satyarepala2655
    @satyarepala2655 4 года назад +1

    hi sir, can you please explain what are input rgb channels doing in conv2d ,cause i can see 1st layer output channels are 64 that means we consider black and white image?

  • @vinodtheresearcher5227
    @vinodtheresearcher5227 4 года назад

    Simple and superb

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

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

    Hi Sir, Why use Conv layers with the same parameters in a block. ex the first block Conv64 x 2 or the fifth block Cov512 x 3.
    Thank you very much!
    ( my listening skill is not good)

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

  • @bhavana-lc2pi
    @bhavana-lc2pi Год назад

    How to change the size of training dataset with size 28,28,3 to VGG16 compatible input_shape

  • @manjura1717
    @manjura1717 4 года назад

    Great work sir

    • @ShriramVasudevan
      @ShriramVasudevan  4 года назад

      Thanks Manju

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

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

    Hi, Shriram thank you for your knowledge sharing. I have couple of doubts you printed model summary before building or fitting the model, secondly when you execute this error pops up:ValueError: Shapes (None, 1) and (None, 2) are incompatible for categorial_cross entropy loss and softmax in the last layer. can you give idea how you approached to resolve these two in your demo code shown in this video.

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

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

    fit_generators method is not working for sequential model

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

    Great lecture .. Thank you.. can you please share these slides ,

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

      These slides are part of my book. So it's difficult.

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

    sir why 512 is retained??

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

    Ma lord and savior has bless me

  • @sp3519
    @sp3519 4 года назад

    Very nice 👍

  • @harshkumarsingh5815
    @harshkumarsingh5815 3 года назад

    sir please reply in that whether we can use 'image net ' for weights instead of vggweights.h5??

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

    Sir I wanted to know that you have approx. 21 lacks parameters among which only approx. 6 lakhs are trainable and rest of them are non trainable ..So Does it will matter for good CNN Model. Actually I wanted to build my own CNN Model for my research work

  • @unggulprabowo1045
    @unggulprabowo1045 3 года назад

    Why you change 4096 become 256, in the Fc ?

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

    Sir actually,ResNet,VGG16,AlexNet implement by which software (i.e)matlab or python....anybody please clarrify

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

      Python with many libraries being used.

    • @zenonisha505
      @zenonisha505 3 года назад

      Is That will not work on matlab??

    • @ShriramVasudevan
      @ShriramVasudevan  3 года назад

      @@zenonisha505 it will.. you need to pull right module

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      python . that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

  • @mayanktripathi4u
    @mayanktripathi4u 3 года назад

    Hi Sir, its not necessary that all the input images will be of size 224 * 224, some of the images which I have downloaded from google are far less than the said size, how to handle such images. Please guide.

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

      YOU can reshape the size of all the images in a folder, with the various preprocessing functions, and all the images in a folder will be resized to desired size and then deed it.

  • @pulock.g
    @pulock.g Год назад

    sir, where do i get the dataset file?

  • @godomotives7171
    @godomotives7171 3 года назад

    Great lecture sir...Is this what is known as VGG 16 with transfer learning?

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

  • @dhirendrakumarjha7385
    @dhirendrakumarjha7385 3 года назад

    sir how to calculate precision and recall and confusion matrix

  • @ufalakbar
    @ufalakbar 3 года назад

    How i use vgg16 If the shape of image is not square like 640x480 ?

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

  • @nibhanapuri4476
    @nibhanapuri4476 3 года назад

    Sir, can prepare video lecture on image segmentation using deeplearning in keras like UNet

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

    Hey Shriram, thanks a lot for the video! But I think there is some mistake, because the last layer should return 1 unit and not 2. It didn't run in my colab at all, until I changed the last dense later to 1 from 2.
    I was getting some error from keras because of that.

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

  • @shimisys429
    @shimisys429 3 года назад

    On minute 11, if i have 6 different classes, how i want to add another classes such as rabbit, alligator etc?

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

  • @yashwanthbkumar1755
    @yashwanthbkumar1755 4 года назад

    Hi Shiram - When I try to execute the code in google colab, I got an exception (InvalidArgumentError: logits and labels must be broadcastable) for this line : hist = model.fit_generator(steps_per_epoch=100,generator=traindata,validation_data=testdata,validation_steps=10,epochs=5). Have you come across this kind of issues?

    • @ShriramVasudevan
      @ShriramVasudevan  4 года назад +1

      Let me have a look brother..

    • @yashwanthbkumar1755
      @yashwanthbkumar1755 4 года назад

      @@ShriramVasudevan Did you get time to look into the issue?

    • @Vinay-jg7yb
      @Vinay-jg7yb 3 года назад

      @@yashwanthbkumar1755 did find solution?

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

    • @Anonymous_Ali01
      @Anonymous_Ali01 10 месяцев назад

      Error = logits and labels must be broadcastable: logits_size=[32,2] labels_size=[32,3]
      Solution = you are having just two classes in your final classification layer while you actually need 3

  • @manjunathreddy5739
    @manjunathreddy5739 3 года назад

    Sir I am getting error as module leraa has no attribute applications

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

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

    brother ppt yet not given

  • @roopahs2237
    @roopahs2237 3 года назад

    Sir I am getting an error saying shapes incompatible(25088,256) and (25088,4096) So can u share the correct vggweights.h5 file

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

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

    Can You Provide the PPT used in this video

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

    can u Share the code please

  • @sagarprithvipalsinghrawat6655
    @sagarprithvipalsinghrawat6655 4 года назад

    Can u share code with us plz
    By the way awesome explanation

    • @ShriramVasudevan
      @ShriramVasudevan  4 года назад +1

      It's in my git. Shriramkv

    • @ShriramVasudevan
      @ShriramVasudevan  4 года назад +1

      Thanks and glad u liked

    • @sagarprithvipalsinghrawat6655
      @sagarprithvipalsinghrawat6655 4 года назад

      @@ShriramVasudevan sir one more question at dense layer units is 4096 , so why we use only 256 units

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

      @@sagarprithvipalsinghrawat6655 We are only using top 13 layers for our model from VGG16. Classification part(After flattening) is upto us. We can use any number of neurons

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

  • @shimisys429
    @shimisys429 3 года назад

    helo, good video. But can you teach how to implement vgg16 with 6 different classes? Where we should edit in the code? Thank you for your time

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

      I shall make a quick video on that

    • @shimisys429
      @shimisys429 3 года назад

      Thank you so much Sir.. I appreciate that.

    • @shimisys429
      @shimisys429 3 года назад

      Hope you can release the video quickly since I am using your explanation as one of my references in my final year project 😁

  • @nielspalmans6237
    @nielspalmans6237 3 года назад

    good video, but this the first time that the indian accent was so strong i had difficulties understanding parts

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

    Can I get your mail as I have few questions regarding this topic??

  • @sreesri5377
    @sreesri5377 3 года назад

    Can u plzz explain GMCNN with code...
    Please ...
    Thank you

    • @ShriramVasudevan
      @ShriramVasudevan  3 года назад

      Soon

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

  • @AbhayAgrawaluploads
    @AbhayAgrawaluploads 4 года назад

    Sir, why channel size is increasing?

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      check out the details

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

    sir can u copy paste the code here

  • @ryanconnor2720
    @ryanconnor2720 4 года назад

    I get this error : OSError: Unable to open file (unable to open file: name = 'vggweights.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
    How do I find out the path location to the downloaded VGG code?

    • @ShriramVasudevan
      @ShriramVasudevan  4 года назад +1

      You need to download the Weights file. . And keep it on the path. It woll work fine thenn

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19

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

      @@ShriramVasudevan how to downlode weights file?

  • @divyarajvs8890
    @divyarajvs8890 3 года назад

    pls share the github link for the code

  • @thamizhansudip6644
    @thamizhansudip6644 4 года назад

    can you pl share this script ....or please share github link if you have

  • @yuhengnie8984
    @yuhengnie8984 3 года назад

    could you please add subtitle?

    • @ShriramVasudevan
      @ShriramVasudevan  3 года назад

      Will that as soon as I can

    • @yuhengnie8984
      @yuhengnie8984 3 года назад

      @@ShriramVasudevangreat video, helped me a lot from a different background.

    • @sometimesdchordstrikes...7876
      @sometimesdchordstrikes...7876 2 года назад

      that is why I said this video provides wrong information this video doesn't even provide the full form of Vgg please ruclips.net/video/PGhbpnfC3Qc/видео.html it covers bgg 16 and says that it is bgg 19