Training Residual Neural Network with your own dataset

Sdílet
Vložit
  • čas přidán 12. 09. 2020
  • #python #TensorFlow #Keras
    ResNet50 Architecture video link:-
    • RESNET50 Architecture ...
    In this video we have trained a ResNet50 model from skratch in python.
    You can check out udemy complete course for transfer learning on below link
    www.udemy.com/course/advanced...
    A residual neural network (ResNet) is an artificial neural network (ANN) of a kind that builds on constructs known from pyramidal cells in the cerebral cortex. Residual neural networks do this by utilizing skip connections, or shortcuts to jump over some layers. Typical ResNet models are implemented with double- or triple- layer skips that contain nonlinearities (ReLU) and batch normalization in between.An additional weight matrix may be used to learn the skip weights; these models are known as HighwayNets.[3] Models with several parallel skips are referred to as DenseNets. In the context of residual neural networks, a non-residual network may be described as a plain network.

Komentáře • 89

  • @whenmathsmeetcoding1836
    @whenmathsmeetcoding1836  Před 3 lety +9

    if you liked the video please support by subscribing😇
    1. Object detection with tensorFlow api after installation :- czcams.com/video/CBfO4uSwLTI/video.html
    2. Yolo Object detection :- czcams.com/video/zm9h4mYymk0/video.html

    • @dakariluca6577
      @dakariluca6577 Před 2 lety

      i realize Im pretty randomly asking but does anybody know a good website to watch newly released movies online ?

    • @vikramdev7381
      @vikramdev7381 Před 2 lety +1

      Sir, could you please tell how to predict the test_data in the multi class model?

    • @neemaradhalalneema5418
      @neemaradhalalneema5418 Před rokem

      Hi could you show the output with identification of each flower?

  • @md.shafaatjamilrokon8587
    @md.shafaatjamilrokon8587 Před 3 lety +17

    Hello. Why are u using validation_split when u've already used splitfolders library for splitting? That's mean u are splitting dataset 2 times. isn't it? if anyone knows this please reply.. (I didn't use validation_split and got good accuracy)

  • @jagyansenipanda12panda37

    Sir, I appreciate your description. It is quite understandable. My request is to make one video regarding image super-resolution using CNN.

  • @amarjeetcheema8803
    @amarjeetcheema8803 Před 3 lety +4

    Hi Jay thanks for the explaining the code, but i did not find any github link in the description

  • @devarapallivamsi7064
    @devarapallivamsi7064 Před rokem

    The best video tutorial I have ever come across.

  • @BearuanG69
    @BearuanG69 Před 3 lety +4

    Why do we have to use validaiton_split if we had already split the data to train, test, and validation with 6:2:2 ratio?

  • @ayseperuzoglu8655
    @ayseperuzoglu8655 Před 2 lety

    Hello there,
    You used the split function in the code you wrote. but then why did you use subset, wouldn't it make more sense not to use it?
    Why did you create a validation dataset and then use the subset command? Won't it affect accuracy incorrectly?

  • @scottdiaz-pe4rw
    @scottdiaz-pe4rw Před rokem

    hello can you make video tutorial about image detection and only one kind of flower is our dataset

  • @mithileshthakkar693
    @mithileshthakkar693 Před 3 lety +3

    hey, bro may you give Github link for it, because I am getting the accuracy of 1 from the very first epoch, which suggests it gets overfit so I want to conform it

  • @athiramohan5815
    @athiramohan5815 Před 2 lety

    Can you make a video on facial pain detection using ResNet

  • @abiryousuf9931
    @abiryousuf9931 Před 3 lety +1

    Brother, I really want to use CNN for this instead of RNN. How do I do that??

  • @muhammadislam9097
    @muhammadislam9097 Před rokem

    Hello there,
    You have shared good work. Thank you so much for sharing this tutorial.
    I tried to train my custom image data with this model but something went wrong when it starts training.
    In the first epoch it showing 1233/unknown -123s 123ms/step - loss: 0.0045 acc: 0.9914
    du to the unknown limit it can not complete the first epoch and it seems like the training is stuck in a loop.
    It would be a great help if someone can figure out the problem.
    --Thanks in advance

  • @nkechiesomonu8764
    @nkechiesomonu8764 Před 2 lety

    please sir where is the link to your dataset. the one I downloaded from kaggle does not have output(processed data). Thanks

  • @ramyabommarapu7612
    @ramyabommarapu7612 Před 3 lety

    Sir what if we want to predict facial recognition like puffy eyes,wrinkels and dark spots what will be the code change

  • @rafunongrum7085
    @rafunongrum7085 Před 3 lety +1

    this was really helpful.could you please share this code?

  • @sagihaviv5675
    @sagihaviv5675 Před 3 lety

    hello sir do you similar video for ocr? i want to train to identify for sql statements/syntax

  • @sehrishkhan8820
    @sehrishkhan8820 Před 3 lety

    Hello
    can you make video for Alex Net model

  • @nirachasukyuang3476
    @nirachasukyuang3476 Před 2 lety

    Hello I get a problem when I runing the code.It show "Found 0 images belonging to 0 classes." What could I do to solve ?. Thankyou

  • @RinRoya
    @RinRoya Před 2 lety +1

    Hey, can I take all images to numpy from ImageDataGenerator? How?

  • @smvignesh3650
    @smvignesh3650 Před 2 lety +4

    Hi...pretty informative video, can you share the code?

  • @deepakkumaryadav2381
    @deepakkumaryadav2381 Před 3 lety

    Sir Please a make video Fire detection using ANN algorithm and flower pollination algorithm

  • @juang.8799
    @juang.8799 Před 3 lety +9

    Dude, you saved me

  • @davidkloss2693
    @davidkloss2693 Před 3 lety

    Great Job!!!

  • @esrahandles
    @esrahandles Před 2 lety

    How can we do the deployment can you share that too

  • @puterailham7112
    @puterailham7112 Před 2 lety

    Hi I know its a pretty old video, my code can't find the path specified hope to advised.

  • @syedwaliuddin3656
    @syedwaliuddin3656 Před 2 lety

    Can you make auc and roc curve ?

  • @UdhamsArtAndCraft
    @UdhamsArtAndCraft Před 10 dny

    Thankyou brother Thankyou ❤️ 🙏 💙 🙌

  • @xXMaDGaMeR
    @xXMaDGaMeR Před rokem

    amazing content

  • @edsontorresojeda4298
    @edsontorresojeda4298 Před 3 lety

    what is the page that you can debug

  • @pavanbharadwajaleshwarapu23

    can you post the above code

  • @komalsaini734
    @komalsaini734 Před 2 lety

    how do we test the model for a data???

  • @codewithasia74
    @codewithasia74 Před 8 měsíci

    video is blur at my side so please give me solution what i do?

  • @bishnusharma9949
    @bishnusharma9949 Před rokem

    Sorry, I cannot find your GitHub link. Can you please share it?

  • @explors91
    @explors91 Před 3 lety +1

    Thank you so much!
    But how to use model to identify flower with custom input images?

  • @shashankkamath2171
    @shashankkamath2171 Před 3 lety

    Saved me bro😁😘

  • @ShivamPanchbhai
    @ShivamPanchbhai Před 2 lety

    thnx a lot bro

  • @bushranajeeb6374
    @bushranajeeb6374 Před 2 lety +1

    Can you please share your github link?

  • @anandraj4111
    @anandraj4111 Před 2 lety

    can i get this code plz?

  • @harvardyard79
    @harvardyard79 Před 2 lety +1

    This video actually helped me with my project when so many other articles and videos I searched for did not. Only question I have is the same as a couple other comments: why do we set a validation ratio of 0.4 when we already have separate folders? Oh well it works so thanks!

    • @MrKhan-fp4hv
      @MrKhan-fp4hv Před 2 lety

      I have tried this code but after model. Fit it shows error in confusion matrix code from starting for loop

  • @nipamghorai3217
    @nipamghorai3217 Před 2 měsíci

    Where is the github link

  • @md.samiulhaque4411
    @md.samiulhaque4411 Před 2 lety

    Can you please provide code?

  • @ibdour1200
    @ibdour1200 Před 2 lety

    Hello Dr i am try to traning my own binary dataset . binary classfication . and i do all step with you but add my own data . in final cell i have an type error message : Invalid keyword argument(s) in `compile()`: ({'matrics'},). Valid keyword arguments include "cloning", "experimental_run_tf_function", "distribute", "target_tensors", or "sample_weight_mode". can you help me please 🤗 and thank you for this video .

    • @ibdour1200
      @ibdour1200 Před 2 lety

      base_model = ResNet50(include_top=False, weights='imagenet')
      x = base_model.output
      x = GlobalAveragePooling2D()(x)
      x = Dense(1024, activation='relu')(x)
      predictions = Dense(train_generator.num_classes,activation='softmax')(x)
      model=Model(inputs=base_model.input,outputs=predictions)
      for layer in base_model.layers:
      layer.trainable = False
      model.compile(optimizer ='adam', loss= 'binary_crossentropy', metrics =['accuracy'])
      model.fit(train_generator,epochs = 10)
      this is my modify to use it with binary .

  • @zahrafatima2062
    @zahrafatima2062 Před 3 lety

    can you share code

  • @chrattiya
    @chrattiya Před 3 lety

    I ran the code in google colab I found error when compile model
    PIL.UnidentifiedImageError: cannot identify image file

    • @usmanmalik4394
      @usmanmalik4394 Před 2 lety

      where did you get the code ??? i didn't found the file ???

  • @REDROSE-be3br
    @REDROSE-be3br Před 2 lety

    predictions = Dense(train_generator.num_classes, activation="softmax")(x)
    I am getting an error "Inputs to a layer should be tensors."

  • @vikramdev7381
    @vikramdev7381 Před 2 lety

    Sir, could you please tell how to predict the test_data in the multi class model? or if anyone know then please help.

  • @RAZZKIRAN
    @RAZZKIRAN Před 2 lety

    share the code or github link

  • @tanviran
    @tanviran Před rokem

    Source code, please?

  • @indalasadhvika5706
    @indalasadhvika5706 Před 2 lety

    Please provide github link

  • @shreyasb.s3819
    @shreyasb.s3819 Před 3 lety

    Share the code

  • @ryancaballero6651
    @ryancaballero6651 Před 3 lety +1

    Is this the same with resnet18?

  • @diseaseddates4242
    @diseaseddates4242 Před rokem

    where us tge github ?

  • @pooviladk8365
    @pooviladk8365 Před 3 lety

    predictions=Dense(X_train.num_classes,activation='softmax')(x)
    6 model=Model(inputs=base_model.input,outputs=predictions)
    7
    AttributeError: 'numpy.ndarray' object has no attribute 'num_classes'
    help me to overcome it

    • @SaurabhSingh-ex6vl
      @SaurabhSingh-ex6vl Před 3 lety

      Number classes you have defined at beginning of model check it

    • @REDROSE-be3br
      @REDROSE-be3br Před 2 lety

      "Inputs to a layer should be tensors." I am getting errors like this

  • @sagniksarkar7796
    @sagniksarkar7796 Před 3 lety

    Everytime i get this error : Image transformations require SciPy. Install SciPy. In x,y = test_generator.next()

  • @otuntwa
    @otuntwa Před 3 lety +1

    Can you please post your Github link?

  • @StaMariaRock
    @StaMariaRock Před rokem

    The code worked perfectly, but I have a question about the GPU processing speed.
    I have no much experience, but while training other datasets my GPU was able to process even bigger and as much complex as this one way faster, so my question is, if someone knows why is this so slow (I guess is related to ResNet50, based on a quick google) but I might like to know exactly why
    Thanks so much

  • @ashitoshtilve5677
    @ashitoshtilve5677 Před 3 lety +1

    Can i please get this code?

  • @ccna_and_ceh_tutorials_
    @ccna_and_ceh_tutorials_ Před 3 lety +2

    Can you show the same based on CNN?

    • @whenmathsmeetcoding1836
      @whenmathsmeetcoding1836  Před 3 lety

      sure video is already there on my youtube channel
      czcams.com/video/uqomO_BZ44g/video.html

    • @ccna_and_ceh_tutorials_
      @ccna_and_ceh_tutorials_ Před 3 lety

      @@whenmathsmeetcoding1836 bro data_prepricessing file only worked for me. Resnet50.pynb not working.. I don't know why😒.. Can you clear my doubts ❔

    • @whenmathsmeetcoding1836
      @whenmathsmeetcoding1836  Před 3 lety +1

      @@ccna_and_ceh_tutorials_ sure did you follow all steps from video..

    • @ccna_and_ceh_tutorials_
      @ccna_and_ceh_tutorials_ Před 3 lety

      @@whenmathsmeetcoding1836 I will check once again, if any error, please guide me

    • @ccna_and_ceh_tutorials_
      @ccna_and_ceh_tutorials_ Před 3 lety

      Bro while processing resnet50, Model.save module,
      Error is unicode error

  • @lovemathitlovesyouback3218

    can you post the above code