Build a Deep CNN Image Classifier with ANY Images

Sdílet
Vložit
  • čas přidán 8. 05. 2024
  • Get the Code github.com/nicknochnack/Image...
    So...you wanna build your own image classifier eh? Well in this tutorial you're going to learn how to do exactly that...FROM SCRATCH using Python, Tensorflow and Keras. But best yet, you can do it on virtually any dataset. Go on, give it a go!
    Links
    Sigmoid Activation: en.wikipedia.org/wiki/Sigmoid...
    Relu Activation: en.wikipedia.org/wiki/Rectifi...)
    Image Downloader Extension: chrome.google.com/webstore/de...
    Conv2D Layer: www.tensorflow.org/api_docs/p...
    MaxPooling Layer: keras.io/api/layers/pooling_l...
    Chapters
    0:00 - Start
    0:28 - Explainer
    1:19 - PART 1: Building a Data Pipeline
    3:08 - Installing Dependencies
    8:30 - Getting Data from Google Images
    23:12 - Load Data using Keras Utils
    33:22 - PART 2: Preprocessing Data
    35:56 - Scaling Images
    42:23 - Partitioning the Dataset
    47:34 - PART 3: Building the Deep Neural Network
    48:21 - Build the Network
    1:02:32 - Training the DNN
    1:06:37 - Plotting Model Performance
    1:09:50 - PART 4: Evaluating Perofmrnace
    1:10:38 - Evaluating on the Test Partition
    1:13:59 - Testing on New Data
    1:20:39 - PART 5: Saving the Model
    1:21:08 - Saving the model as h5 file
    1:24:43 - Wrap Up
    Oh, and don't forget to connect with me!
    LinkedIn: bit.ly/324Epgo
    Facebook: bit.ly/3mB1sZD
    GitHub: bit.ly/3mDJllD
    Patreon: bit.ly/2OCn3UW
    Join the Discussion on Discord: bit.ly/3dQiZsV
    Happy coding!
    Nick
    P.s. Let me know how you go and drop a comment if you need a hand!
    #deeplearning #python
  • Věda a technologie

Komentáře • 586

  • @marti-nz
    @marti-nz Před rokem +10

    This tutorial is amazing, not only are instructions easy to follow but sufficient explanation is provided so I know why each line of code was added. Great Job!

  • @TheSakyoGamer
    @TheSakyoGamer Před rokem +22

    This. Was. AMAZING!
    Oh my gosh. Thank you for such for this tutorial. I've been wanting to get into machine learning for so long, but never knew where to start or how to work these models. With how long this video was and how excellent your commentary was, it helped so much!
    I plan to watch a ton of your videos about creating some more models.

  • @salvinprasad8592
    @salvinprasad8592 Před rokem +2

    Absolutely brilliant. I will use this structural approach in my third paper for my PhD. Thanks so much

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

    Thanks a lot Nick! I like how you skim through the mathematical concepts behind your code. Very informative! I'm watching the whole playlist :)

  • @hugehammer2706
    @hugehammer2706 Před 29 dny +1

    Wow! It was awesome. I built my first CNN architecture with the help of this video.

  • @mahendrakergaurav5867

    Amazing Tutorial, highly underrated channel, will share this with my friends.

  • @KarrsonHeumann
    @KarrsonHeumann Před 10 měsíci +45

    I really love these longer tutorials. You explained things so well in this one that I feel like AI development finally clicked for me, not just in terms of this specific application, but also in general. I would understand if you'd be worried about length vs entertainment, but honestly you teach so well and you are so enthusiastic I don't think that should even be a concern. Thank you so much! :)

  • @bratutub3
    @bratutub3 Před 2 lety

    Your detailed explanation has led me to a better understanding of the matter... Thank you...

  • @photorealm
    @photorealm Před rokem

    Awesome video. Love the way you explained all of the steps in great common sense detail. 5 Stars 😊

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

    Best CNN tutorial I've never seen

  • @eru3890
    @eru3890 Před 2 lety +2

    I love your videos, keep it up! I would like for you to make a video explaining about how to handle false positives with objects we don't want to detect.

  • @firenoo
    @firenoo Před 2 lety

    Amazing tutorial, clear and easy to follow

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

    Would love to see some more stuff on deep reinforcement learning! :)

  • @joelmaiza
    @joelmaiza Před rokem +1

    Realmente increíble, muy explicativo paso a paso y es de los pocos tutoriales que puedes seguir sin tener ninguna complicación.
    Gracias por compartir con todos.

  • @ProjectSibanda
    @ProjectSibanda Před rokem

    Incredible Tutorial Nick!!

  • @allisonmoczynski5655
    @allisonmoczynski5655 Před 24 dny

    Thank you so much for making this tutorial! It was so, so helpful!

  • @venomlovekitties
    @venomlovekitties Před rokem +45

    As a non coder person I instantly subscribed because of the simplicity you showed by your teaching skills. Thanks man, love to see more content from you.

    • @CantPickTheNameIwant
      @CantPickTheNameIwant Před 11 měsíci +1

      as a CV engineer, I instantly hit the dislike button under this video

    • @mihai3678
      @mihai3678 Před 10 měsíci

      @@CantPickTheNameIwant that’s what I wanted to say 😂😂big source of misinformations on this channel, specifically in this video

    • @daryladhityahenry
      @daryladhityahenry Před 9 měsíci +2

      @@mihai3678 Can you tell which one is misinformation and how should it be? So I can know which one that I should look for... THank you....

    • @akikabanu5885
      @akikabanu5885 Před 6 měsíci

      @@mihai3678 how come? do you think you could explain?

    • @muhammaduseram9405
      @muhammaduseram9405 Před 3 měsíci

      @@CantPickTheNameIwant at least you should clear your point if you said it

  • @adowanshahriar3623
    @adowanshahriar3623 Před rokem +12

    This tutorial is live savior. Recently I am doing my thesis on medical image processing and this video is an absolute guideline. Thanks a ton Nicholas :3

    • @samarth2915
      @samarth2915 Před rokem

      yess !!! do u have any idea what changes should be done in the NN foro multi classes ??

    • @priyam66
      @priyam66 Před rokem +3

      @@samarth2915 for multiclass classification, following changes need to be made.
      1) the activation function for the output layer in ANN will be Softmax
      2) The loss function would be Categorical CrossEntropy().
      3) if you use this shown method of the data pipeline, then you will have to create multiple subfolders for each class in the multi-class classification problem.

  • @senaldharmasiri8990
    @senaldharmasiri8990 Před rokem

    ay bro this is the best explanation i've found so far. Thanks

  • @pedrobizzotto556
    @pedrobizzotto556 Před rokem +5

    Its rare to see someone explain in detail every step of the way! Great tutorial!

    • @andybrice2711
      @andybrice2711 Před 26 dny

      But not _too_ much detail. It's a good balance of theory and practice.

  • @TugbaCekirge
    @TugbaCekirge Před rokem +40

    Hello Nick, thank you for this awesome tutorial, I learned a lot. I was wondering if you published another tutorial with more classes involved? (at 13:01) Thanks

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

    Thanks man, exactly how i will like to learn. Everypart of the code explained and visualised. No assumption ☺

  • @navarclaudio
    @navarclaudio Před rokem

    Massive video Nicholas!!! I'm very grateful!!

  • @hassanbabaousmail194
    @hassanbabaousmail194 Před rokem

    Woow, What a perfect explanation. Thank you so much for this tutorial.

  • @patricklynch6871
    @patricklynch6871 Před rokem

    You're the man Nicholas! Thanks for the video!

  • @faizansiddiqui4901
    @faizansiddiqui4901 Před rokem

    Nick, thank you so much for the valuable tutorial. really appreciated. 👍

  • @aysegulsezen4280
    @aysegulsezen4280 Před 10 měsíci

    It was very useful video. Thank you very much! This video answered my questions about preparing image input data for machine learning.

  • @kokylolify
    @kokylolify Před rokem

    Finally some good tutorial, thank you Sir!

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

    Thanks for sharing, amazing tutorial!

  • @priyanshgupta1902
    @priyanshgupta1902 Před rokem

    Amazing tutorial! Thanks Nicholas

  • @zuhal6900
    @zuhal6900 Před 20 dny

    THAT'S A MASTERPIECE!!! THANKS A LOT!

  • @dimasalangxt3482
    @dimasalangxt3482 Před rokem +24

    Amazing job on these videos! Would love to see a tutorial featuring 9 or more classes, thanks!

  • @Christian-dd2qm
    @Christian-dd2qm Před rokem

    Great content and I love that you speak proper English! I am not a native speaker and had my fill of Australian and Indian accents.

  • @lubwamaemmanuel7743
    @lubwamaemmanuel7743 Před měsícem

    Hey Nicholas, that is an amzing tutorial, i really learnt tonnes to take me to my next learning of ML. Thanks so much.💯

  • @THE8SFN
    @THE8SFN Před rokem

    Thank you for the amazing insightful tutorial

  • @okohfranklin.c
    @okohfranklin.c Před rokem

    thanks for the tutorial....well explained, i tried it and it's working perfect. Thanks Nicholas

  • @filixzs
    @filixzs Před rokem

    Amazing explanation, Im using this for thesis project, I'll let you know how well it went 👍

  • @martinology5215
    @martinology5215 Před rokem

    Sir, this...was...amazing. Thank You! ✨

  • @bibinlouis4927
    @bibinlouis4927 Před 6 měsíci

    This video made me happy. Thank you sensei.

  • @Alice8000
    @Alice8000 Před 4 měsíci

    Wow, I didn’t know Neon did programming videos too. You’re really smart. Clap 👏

  • @efeaydemir1413
    @efeaydemir1413 Před rokem

    Brilliant!!!!!! Man thanks a lot, not finished yet. Allthough it is awesome so farr, learned a lot.

  • @mikohalurangersid-green493

    Amazing video with perfect explanation
    I wonder if you can make some kind of tutorial with image classification using RNN in the future

  • @ameer-alahmadi
    @ameer-alahmadi Před rokem

    The great explanation I've ever seen! Thanks a lot!

  • @pritamrajbhar9504
    @pritamrajbhar9504 Před rokem

    it was an amazing explanation, glad I visited this channel.

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

    I've learned more in 30mins than in my image processing class

  • @okopyl
    @okopyl Před rokem

    Amazinly clear, thanks. Love this tutorial. One of the best i've seen.
    Do you have any paid courses?

  • @absba9
    @absba9 Před 6 dny

    Incredible tutorial.

  • @amirhosseinkarimi1760
    @amirhosseinkarimi1760 Před 5 měsíci

    this is very well done sir! thanks for the great content!

  • @samherold9970
    @samherold9970 Před 8 měsíci +1

    You are goated with the sauce

  • @dariusdevo9554
    @dariusdevo9554 Před rokem

    The best tf explanation I've ever seen, big thumb up!

  • @russstephanson6987
    @russstephanson6987 Před 5 měsíci +2

    Nicholas this video is one of the best tutorials I have seen on image classification. Thank you

  • @terwasevictorsesugh3902

    your tutorial is great. looking for part 2

  • @somtoogbe108
    @somtoogbe108 Před 4 měsíci +2

    You are really a great teacher and I love the way you organize your code. Keep it up Nic

  • @raffaelemasucci4082
    @raffaelemasucci4082 Před 7 měsíci

    Thank you my friend for your excellent work!

  • @abhishekfnu7455
    @abhishekfnu7455 Před 4 měsíci

    Thank you so much for this video. You really explained every bit of it.

  • @dimitrimattheis3740
    @dimitrimattheis3740 Před rokem

    awesome tutorial! would love a video on how to use more than two classes

  • @atharvpal7038
    @atharvpal7038 Před 4 měsíci

    Thanks man!
    Finally finished this!

  • @vigneshm4916
    @vigneshm4916 Před 2 lety +2

    Great Tutorial! As you said a tutorial on callbacks would be great. Thanks Nicholas!

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety

      Yeah, wish I spent some more time on it in this vid. You got it @Vignesh!

  • @user-dz5ic4mw3w
    @user-dz5ic4mw3w Před rokem

    Never seen such a comprehensive tutorial.. just a beginner in ML and DL so such tutorials help alot.. thank you

  • @amc8437
    @amc8437 Před 10 měsíci

    Thank you very much Nicholas, I have a CNN image classification project. This is tons of help.

  • @dragway0385
    @dragway0385 Před rokem

    Amazing, you are my hero Nich, bless you ❤

  • @aminaleali7161
    @aminaleali7161 Před 5 měsíci

    Exceptional talent for teaching! Informative, clear, and I love the pace of it. No fluff and to the point. Thank you and great job!

  • @sapphirenoctua
    @sapphirenoctua Před 10 měsíci

    You are so helpful! Amazing teaching!

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

    Thanks Nicholas, i'll try it

  • @ziddimalikziddimalik1288

    Dear sir,
    Your video is so awesome and you deliver each point very clearly and it need more video related this topics and student want to be more learn to your channel I hope you will be share more video such kind of work...
    Good job sir👍

  • @gblazerify
    @gblazerify Před 28 dny

    Amazing tutorial!

  • @manishtanwar8578
    @manishtanwar8578 Před rokem

    Awosome work NICHOLAS , Please make video for the multiple classes classifier too.

  • @abcxyz-ht3ch
    @abcxyz-ht3ch Před rokem

    Thank you for providing such great experience, this helped alot

  • @aldrinjohnencina6153
    @aldrinjohnencina6153 Před rokem

    thank you so much sir. you are helping so many people.

  • @mathiasboudreau7551
    @mathiasboudreau7551 Před měsícem

    Great introduction !

  • @user-ro5mc9jm1b
    @user-ro5mc9jm1b Před rokem

    Thank you very much for this tutorial you really made my life easy👌🏼

  • @lemon_and_berry
    @lemon_and_berry Před měsícem

    Amazing video !! , enjoyed every second of it

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

    would really appreciate one with more classes! Trying to make an AI for SET

  • @atharvmunot8305
    @atharvmunot8305 Před měsícem +1

    Thank you so much for this Tutorial!! IT IS THE BEST !!
    P.S. A side note for the recent viewer, while compiling the model, use the command: model.compile('adam', loss = tf.losses.sparse_categorical_crossentropy, metrics = ['accuracy'])
    This change caters to the recent change in the naming conventions and ensures that the saved .h5 model runs when loaded

  • @ravd123
    @ravd123 Před 11 měsíci

    Awesome very detailed tutorial. Thanks :)

  • @koneali7539
    @koneali7539 Před 17 dny

    Very insightful! Thanks

  • @shayestebazsefidpar5584

    thank you very much for the nice explanations! you explain all the details!!!! thank you again, I am learning a lot!!

  • @alexiadeboynes4656
    @alexiadeboynes4656 Před rokem

    Thank you so much! Great tutorial!

  • @rikiriki43
    @rikiriki43 Před 10 měsíci

    So interesting ,Thank you for your video. As a beginnger for python, I can build a model. It's amazing!!!

  • @archiellagas6384
    @archiellagas6384 Před rokem

    your coding is fantastics and easy to follow

  • @alextotheroh8071
    @alextotheroh8071 Před 7 měsíci +3

    This is truly a fantastic tutorial. I had a working model in just a few hours. I didn't realize it could be done that quickly! Thank you!

  • @borutcerne
    @borutcerne Před 11 měsíci

    Fantastic tutorial Nicholas, every step explained as simply as conceivably possible. Thank you!

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

    Another amazing video! 👏👏👏

  • @urd4651
    @urd4651 Před rokem

    Excellent tutorial! thank you very much! 🤓

  • @sanjayravi8181
    @sanjayravi8181 Před 11 měsíci

    Hi Nick, You are right you were dividing the data twice by 255 so it came out to be 0.0039. (1/255 = 0.0039). Thanks for the video. Happy learning!.

  • @lancemarchetti8673
    @lancemarchetti8673 Před 4 měsíci +2

    Nice! Imagine if we could build a classifier that can spot Base64 in a screen capture and extract it accordingly. In digital Forensics this could be quite handy in cases where base encoding is used to hide particular image data.

  • @slidertime
    @slidertime Před 3 měsíci

    Thank you, Gustavo!

  • @natgenesis5038
    @natgenesis5038 Před měsícem

    Thanks so much for your help of my project

  • @m0tivati0n71
    @m0tivati0n71 Před rokem

    Great tutorial

  • @misunsong291
    @misunsong291 Před 11 měsíci +1

    This tutorial is legendary. I learned a lot and do appreciate this!

  • @khenpahilanga9596
    @khenpahilanga9596 Před 11 měsíci

    Nicholas, THAAAANK youuu!!

  • @28Lost
    @28Lost Před 11 měsíci

    You are a great teacher. Love the video =D

  • @abhayjoshi2121
    @abhayjoshi2121 Před rokem

    Hi Nicholas great session and have learned a lot, If possible in the future can you please create a video on image segmentation and assigning clusters to it , This will be helpful to understand that from group of images can we cluster similar images. thanks and once again thank you for sharing your learning

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

    Amazing, Learnt a lot.

  • @ashie4239
    @ashie4239 Před rokem

    This is sooo good.Everything is easy to understand.Can you also do a video on building CNN-LSTM hybrid model for image classification.If you can do so it would be a big help 🥺.

  • @goufackkentsaleandrinlebel8826

    Hallo Nick. Thank you so much for your work! you are literally changing people s life with you channel! I wanted to ask if I could use this deep cnn to detect vertical landmarks on blurred images with depth information. The landmarks are on the walls of a building in the background of the images.

  • @sarithdilan9173
    @sarithdilan9173 Před rokem

    Thank you vey much for the tutorial

  • @felixoyeleke
    @felixoyeleke Před 7 měsíci

    YOU ARE THE BEST!

  • @diagnointelligent2332

    wow the great video explanation, I ever seen before ..... thanks

  • @user-qz3xn2ff2y
    @user-qz3xn2ff2y Před 11 měsíci

    Thank you for the great content, without a funny accent.