Train Neural Network by loading your images |TensorFlow, CNN, Keras tutorial

Поделиться
HTML-код
  • Опубликовано: 8 май 2020
  • #clustering #python #machinelearning
    Link for my deeplearning udemy course coupon code added
    www.udemy.com/course/linear-r...
    This is the tutorial is for crating your a neural network and training with your own photos. I have used tensorflow keras and ImageDataGenerator to build this neural network. All data labeling is done with help of ImageDataGenerator . convolutional neural network with max pooling and dense layers is used for building up the model.
    follow me on Facebook
    / when-maths-meets-codin...
    #deeplearning #neuralnetwork #artificialintelligence

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

  • @whenmathsmeetcoding1836
    @whenmathsmeetcoding1836  3 года назад +20

    if you liked the content please support by subscribing 😇
    1. here is the video for multiclass:---- ruclips.net/video/1Gbcp66yYX4/видео.html
    2. here is video for object detection with tensorflow:----- ruclips.net/video/_TCUPl3j2kI/видео.html
    3. here is video for object detection with YoloV3:------ ruclips.net/video/zm9h4mYymk0/видео.html

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

      Great tutorial!!! thanks. Here, I noticed you didn't normalize your test data, don't you think this might have had a negative impact on your prediction in some way? Since your model was trained and evaluated on normalized data. Although at 1st glance it doesn't seem so.

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

      Hello sir, How to upload only one data set folder like chech happy or not
      no need to check the saad, just happy folder so what channges i have to make in code

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

      i need to check weather this is a plant leaf or not for my semester project so it will alot of help if you tell the code for single data set that the given image is the same or not in testing

    • @bibhuprasaddora1776
      @bibhuprasaddora1776 3 года назад +5

      Bro please give the code lines link

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

      Hi, we use the same pictures in training and validation? or we use diferent?

  • @danielpinto1628
    @danielpinto1628 3 года назад +60

    You know, here in Brazil us IT people praise IT people from your region.

  • @imanqoly
    @imanqoly Год назад +9

    This is most awesome and most humble tutorial I've ever seen. Despite many other tuts that more like "watch me code" and throwing a line of code with complex variable naming to show off. Thank you.

  • @pronoybiswas3810
    @pronoybiswas3810 2 года назад +28

    This is the exact tutorial I am looking for. Thank you very much. You described all the steps in the most simplified way. This tutorial will help me a lot in my project so thank you again.

  • @yepnah3514
    @yepnah3514 3 года назад +11

    oh god, i spent HOURS trying to figure out my errors. you helped in five minutes!

  • @sanskritisrivastava2242
    @sanskritisrivastava2242 2 года назад +7

    Excellent tutorial😍 can’t thank you enough!🙌🏻🔥

  • @user-kq5cd7bd3o
    @user-kq5cd7bd3o 3 года назад +1

    The first working tutorial!!! Thanks a lot

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

    Thanks a lot , this is exactly what i was looking for. Great job man!

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

    This is an excellent tutorial, thank you so much!

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

    Thank You bro. After building 3 models I forgot the most basic thing, prediction on single random image file. Your video solved my issue. Much love from my side.

  • @cassiemst4993
    @cassiemst4993 3 года назад +4

    Thank you much for the video!! i really enjoy it and helped me a lot to understand more about CNN

  • @EternalNoobCoder
    @EternalNoobCoder Год назад +3

    Exactly what I was looking for. Wonderful video and well explained. Thank You ❤️❤️❤️

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

    Thanks, Man for explaining this in the easiest way🙌

  • @TrendingHashtags-bt7tz
    @TrendingHashtags-bt7tz 2 месяца назад +2

    Crystal clear implementation of CNN

  • @120_sagarikadeb8
    @120_sagarikadeb8 3 года назад

    This is the best video that I have come so far. Thank you so much Sir!!

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

    The best video ever for a person who studies deep learning and cnn ❤😍🔥

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

    Sir I don't know how to express my feelings u are great ❤️❤️ keep going sir

  • @madhumithaaas
    @madhumithaaas 2 месяца назад

    Life saver, Was working on a college level project where i had to create my own dataset with small size and was searching N number of videos on them but failed every time, Your video made me to complete the process in a very short time Thankyou so much

  • @nonig249
    @nonig249 3 года назад +9

    After being stuck a whole day, I prayed for wisdom and bumped into your video. You are an answered prayer. Very grateful for your content. Keep at it. #NewSub

  • @sanskritisrivastava2242
    @sanskritisrivastava2242 2 года назад +4

    wonderful tutorial. Thankyou so much. Just one request, Can you pls make a tutorial on how to evaluate this model by confusion matrix,F1score etc?

  • @carloseduardoa.marchiori5598
    @carloseduardoa.marchiori5598 Год назад

    Amazing job! Thank you so much for that

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

    Thank you so much for this video. Cannot appreciate enough!

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

    Amazing !! True life saviour. I was looking for exactly the same.

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

    Thankyou so much, its really help me, i can use my own image and its awesome

  • @LeenaGurgPhysics
    @LeenaGurgPhysics 3 года назад +4

    Your video is very good. I found it extremely useful. Maybe you could rethink the tags for your video so that it shows up quickly in the search.

  • @joaofonseca528
    @joaofonseca528 3 года назад +3

    Hello, This helped me a lot but One question what chances would you make if we introduced a third output lets say neutral.
    Thanks

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

    you are a wonderful human being

  • @adamcalleja9815
    @adamcalleja9815 3 месяца назад

    great job explaining it, you're a great teacher

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

    Legend, thanks for explaining. i am finally able to put everything i learned about this in practice thanks :)

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

      hi brother i am confused . i need your help .this lab is important to me?

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

    Superb...
    No word for thanks and appraisal .
    good keep it up

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

    Very well explained and to the point

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

    Pls do a tutorial for using and training datasets for Mask RCNN as well, your videos helped alot

  • @sanjaypatil-jq8dh
    @sanjaypatil-jq8dh 3 года назад +5

    Hello nice video..:)
    2 questions:
    1. Since you have 19 unhappy photos how does batch(3) work here?
    2. Diff. btw batch_size and steps per epoch?

  • @nikethatharangi857
    @nikethatharangi857 9 месяцев назад

    this tutorial is really good. thank you so much

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

    Thank you very much for this kind of good explanation!

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

    Nice video! thanks man!

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

    Excellent I just finished it and it recognized most of my images (maybe could it have recognized everyone if I had used more images for training), thanks a lot.

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

      there's no "basedata/test" folder isnt it? how you can finished it?

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

    always the low quality videos that are the best out there

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

    Hi Jay, thanks for the video. I am here share an issue while training my CNN model (multi-data classifier) on Face Emotion Data . For a specific value of epochs it train a specific class(s), correctly. Can I have a different number of epochs for different classes if yes, how?

  • @JeevaSivalingam
    @JeevaSivalingam 3 месяца назад

    Excellent ji.Really very good explanation with real time image's 🎉🎉🎉

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

    i love you sir, you making it work. So much thanks!

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

    Need help with
    ValueError: logits and labels must have the same shape ((None, 512) vs (None, 1))

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

    Great bro ...!!! Very good explanation with appropriate pace ...!! Thank you bro !!

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

    great tutorial, could you kindly show how to display the results with a confusion matrix?

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

    Hello, thank you for this good example.
    I want to ask, how many photo that are good to train, develop, and test?
    because I can't find the dataset that I'm looking for, thankyou!

  • @TheBlackNight971
    @TheBlackNight971 3 года назад +3

    what did u put inside validation folder?

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

    lol... the Neural Network did a good job classifying whether you are happy or not because honestly, I couldn't even tell.

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

    Very interesting video, helped me a lot !

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

    Simply Superb. 🙏🙏

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

    I really enjoyed. Thanks Sir!!!

  • @ancientgear7192
    @ancientgear7192 7 месяцев назад

    Very helpfull tutorial. I have some questions though. Shouldnt all the images of the dataset be the same dimensions before we use them? how can i create a confusion matrix?

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

    thanks, this helped me!

  • @James-mu6th
    @James-mu6th Год назад

    Thx, this is what i looking for.

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

    Very neat explanation, thanks for the video

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

    Thankyou so much for the explanation but I need to train a model for my face recognition project can you please guide how do I train the model for face recognition on both RGB and grey channel. And how can I structure my dataset either multiple folders of people or else?

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

    Ty for this video, you help me a lot rn.

  • @vibhashreehippargi8233
    @vibhashreehippargi8233 11 месяцев назад

    Thanks a lot for the amazing video. I tried it out for healthy and diseased plants, it looks like it wrongly identified few. Should i put them back in training folder and re-run everything again? Please suggest.

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

    dont know how testing folder become test folder? and do i have to copy images in all three folders? please ans

  • @DurgaPrasad-jg8ss
    @DurgaPrasad-jg8ss 8 месяцев назад

    Bro can you tell me to use folder name as an output without using if condition

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

    Love this!

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

    Very useful and great job, thanks you so much

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

    Good Job

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

    sir do we have to sotre photos in all the three folders like validation training and testing or only training

  • @peterslater2914
    @peterslater2914 2 месяца назад

    Excellent video thanks alot.

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

    Wow!!! Beautiful and educational indeed. How can I have this dataset file, for example, saved and load it say on OpenCV?

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

    Hello sir I have a question instead of binary if we have multiple choices to check what is the command we need to use

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

    A very nice and informative video sir. Thank yoU !!

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

    Why did you need to image to csv?And for example I am going to classify the direction that I am looking at. (eye movements:Right,left,up,down)I am gonna use webcam.
    Can you show me how to test data which I classify at webcam?

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

    waoooh ,this is amazing ,thank you brother

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

    Can we know what model architecture you use in this model?
    Or this is just a arxhitecture that u made by yourself?

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

    should v need put images in all folders? like testing - in happy 5 images and unhappy 5 images? same for validation too? but high no. of images in training

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

    Thanks bro, really helped

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

    Thank you for your valuable information sir

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

    Amazing,thank you very much

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

    Model is overfitting and you are happy that ist giving 100% accuracy. OMG

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

    i am reading a research paper on the visual with CNN. The size of the images is 250*500. The paper used CNN with 100 kernels of size 10*20 for 1st conv layer and 100 kernels of size 20*30 for 2nd layer. Can you expain abit of this as it is not clear to me why the chosen size..what is the effect of the huge filter size

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

    it really helps thank you so much

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

    this is the best video ,cong2ln broo

  • @fayezsaeed7991
    @fayezsaeed7991 3 года назад +5

    Thank you for this good video
    I have one question, in the 'Validation' folder which images did you put?
    are they from train group or test group?

    • @whenmathsmeetcoding1836
      @whenmathsmeetcoding1836  3 года назад +5

      I had less no of images but yes you should keep all different images in three folders..

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

      Got the same question. Did you figure this out? Is that so that I have to save my images to all 6 folders: 2 folders - happy / unhappy -- in every of 3 folders: test, train, validation?

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

    sir I did everything like as u have said and I have trained the model but I am facing trouble during testing of a image. Can you kindly help me how should I make the model predict the image class?

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

    hello sir, for class model, if i have single image what i need to declare?

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

    you are amazing ! Have one issue at end, after teaching model on 4 classes i am having error testing i.e. predict, says array is not real something like this (use a.all() or a.any() )

  • @user-eq5jb4hx8h
    @user-eq5jb4hx8h 2 месяца назад

    we need to use new images for validation??

  • @user-bt6tt2ey4s
    @user-bt6tt2ey4s Год назад

    Hi, excellent tut, but I want to ask a stupid question, do I need to train or test the network using the same person's face photo? thanks

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

    what should be the class mode when there are 4 sets in train.flow_from_directory?
    PLs reply

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

    What are the data of the validation set? are the images the same as the training dataset?

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

    Supperb 👍

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

    In the End if i want to Visualizing the training and validation accuracy by ploting so, how was do that

  • @saritham3610
    @saritham3610 3 года назад +4

    Thank you very much. You made my day .I am happy to learn. Sir please upload more videos. Can you please send me code for model evaluation for same program

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

    sir i did exact same thing to classify eye images but it is showing same result for every image . plz help sir

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

    Sie, wh u add 512 units to dense layer?

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

    Awesome content

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

    Great, Jay

  • @mamunhasan8898
    @mamunhasan8898 3 месяца назад

    thanks a lot for your help

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

    Thank you sir!

  • @gserpentzx188
    @gserpentzx188 Месяц назад

    are these using mobilenet architecture?

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

    thankyou very much sir for the great demo,
    but have you the video to explain the details of the models that we have to use for every scenario?

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

    Sir more than two class which class mode we need to take?

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

    very useful! thank u so much ;)

  • @AdvaithRamakrishnan
    @AdvaithRamakrishnan 7 месяцев назад

    how would you make a graph with your epoch results