Image classification using CNN (CIFAR10 dataset) | Deep Learning Tutorial 24 (Tensorflow & Python)

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ม.ค. 2025

ความคิดเห็น • 340

  • @codebasics
    @codebasics  2 ปีที่แล้ว +10

    Check our Deep Learning Course (in PyTorch) with Latest, Industry Relevant Content: tinyurl.com/4p9vmmds
    Check out our premium machine learning course with 2 Industry projects: codebasics.io/courses/machine-learning-for-data-science-beginners-to-advanced

    • @nagababuyerramsetti8715
      @nagababuyerramsetti8715 10 หลายเดือนก่อน

      sir plese plese reply i am doing a project on pcb defect detection using cnn model please help me out i am not getting it please help me

  • @lucianoval903
    @lucianoval903 4 ปีที่แล้ว +69

    From Brazil, you are the best ML teacher!!! Thank you.

    • @codebasics
      @codebasics  4 ปีที่แล้ว +6

      Thanks Luciano for your kind words

  • @nilanjanap
    @nilanjanap 3 ปีที่แล้ว +32

    Excellent tutorials much better than many highly paid course floating online..Thanks a lot sir ..your videos helped me lot ...

  • @ChessLynx
    @ChessLynx 2 ปีที่แล้ว +8

    I am a young Ai and machine learning engineer from a IIIT and your videos are like food for me if i don't eat then I can't live .Great explanation ...
    finally I commented after watching tons of your videos daily . Salute to your spirit sir you will reach 10 M subs soon cause AI and ML is growing exponentially and your videos in this direction in serving as no. 1 you tube channel for simple explanations on Practical AI,ML coding and more people will join with you soon and soon...

    • @codebasics
      @codebasics  2 ปีที่แล้ว +2

      Ha ha .. thanks for your kind words of appreciation my friend :)

  • @rb4754
    @rb4754 ปีที่แล้ว +8

    Your tutorials are truly outstanding, surpassing many paid online courses. I want to express my deep appreciation for the invaluable support they've offered. Your detailed explanations of each code line have been incredibly helpful, particularly when I'm teaching machine learning to my students. Your videos provide a level of comprehension and utility that distinguishes them from other machine learning resources. Your efforts are greatly appreciated... Cheers!!!!!!!!!!!!!!!!💥💫💢

  • @albertoramos9586
    @albertoramos9586 2 ปีที่แล้ว +30

    You are so much better than my university tutors :-D Thanks a lot for your help!

  • @mrawesome-o7p
    @mrawesome-o7p 3 ปีที่แล้ว +20

    From South Korea, Learning Much Faster, Accurate than Univ. Thanks

  • @sabrinazahir01
    @sabrinazahir01 4 ปีที่แล้ว +20

    I started to learn ml after getting inspirations from your videos. Thank you !

  • @Manojrohtela
    @Manojrohtela 3 ปีที่แล้ว +1

    as you teach all concepts even a primary student can understand it easily. Seriously big fan of your teaching style

  • @bhaskargg6018
    @bhaskargg6018 2 ปีที่แล้ว +2

    the important CNN concept is explained in superb and simple to understand , Thanks a lot

  • @tesfitgi7579
    @tesfitgi7579 ปีที่แล้ว

    Indeed you are an excellent tutor. Your efforts are greatly appreciated .I am fun of you. I AM an AI and machine learning outreach ,you pave me the way .Thanks a lot for you support

  • @jogadornumerozero3257
    @jogadornumerozero3257 2 ปีที่แล้ว +2

    someone give this man a life elixir, he must give this knowledge for all the future generations

  • @rishavbhattacharjee7182
    @rishavbhattacharjee7182 4 ปีที่แล้ว +3

    Exciting Times!! May this series long continue😁

    • @codebasics
      @codebasics  4 ปีที่แล้ว +7

      yes it will. My goal is to cove all the topics and make this your one stop place for deep learning

  • @michelletan4249
    @michelletan4249 ปีที่แล้ว +1

    Excellent tutorials much better than my professor! You are the best! thank you so much! your videos helped me a lot....

  • @MonishNS22BCE333
    @MonishNS22BCE333 6 หลายเดือนก่อน

    This was my first to machine/deep learning as i had to do an assignment. Still i understood it vey well and now I'm able to do CNN on my own. Thanks to the tutor :)

  • @sukumarroychowdhury4122
    @sukumarroychowdhury4122 4 ปีที่แล้ว

    Mr. Modi (Mr. Patel) is one side and rest Opposition (Data Science TH-camr) is on the other side.
    I really envy you (ONIDA TV) and you command that envy with your highest excellence.
    I am a retired Sr. Citizen and love data science (not because I understand it) but because of the amazing things that Amazon and Tesla and Google are doing..
    Please keep going..and may God give you a very long life..

  • @mayankpatil7303
    @mayankpatil7303 3 ปีที่แล้ว +2

    Thank you sir! Teaching is also a skill and you nailed it!

  • @prachidoshi9082
    @prachidoshi9082 3 ปีที่แล้ว +2

    how come you tube did not recommend me this way before. Your videos are just perfect for people who want to learn Deep Learning and want to overcome the fear of AI

  • @pa5119
    @pa5119 4 ปีที่แล้ว +3

    Such a Good Content.
    I am really exciting for upcoming videos.

    • @codebasics
      @codebasics  4 ปีที่แล้ว +2

      Glad to hear that

  • @Lina-cy9ln
    @Lina-cy9ln 3 ปีที่แล้ว

    You are the best teacher of mine. I'm grateful to you always. Thanks a lot, sir.

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Zeenat, thanks for you kind words

  • @techguyz839
    @techguyz839 8 หลายเดือนก่อน

    REALLY A GOOD VIDEO , i finally understood implementing CNN using CIFAR10

  • @yoverale
    @yoverale 7 หลายเดือนก่อน

    Amazing tutorial, thanks a lot for sharing! Saludos desde Argentina! 🇦🇷

  • @rafiahmed4247
    @rafiahmed4247 2 หลายเดือนก่อน

    From Bangladesh...very helpful ❤

  • @betsynwankwo1094
    @betsynwankwo1094 4 หลายเดือนก่อน

    Thank you...this course has been inspiring

  • @zainulabideen_1
    @zainulabideen_1 ปีที่แล้ว

    I love your way of teaching

  • @lindadelalifiasam5878
    @lindadelalifiasam5878 3 ปีที่แล้ว +2

    thank you soo much. from the knowledge i gained from this video, i decided to also increase the number of epochs in the first network(ann) from 5 to 10 and that led to a slight increase in the training accuracy(0.49 to 0.54). and for the cnn i intentionally decided first use the SDG optimizer and later the adam which also gave two different but better results than the ann. i also adjusted the epochs in each case. this has given me some more ideas to play around with, with regards to this model. once again thank you for bn such a great teacher

    • @ahmedhelal920
      @ahmedhelal920 2 ปีที่แล้ว

      me too i searched for my issue accuracy was 10 % and no increase however i increased hidden layers epochs , but what help me is changing the softmax to sigmoid and the number of hidden units it was 4 on my project here i found it 3000 , it increase my accuracy too , but based on what he choosed 3000 and 1000 hidden units ?

    • @dheerajvasudevaraovelaga6006
      @dheerajvasudevaraovelaga6006 ปีที่แล้ว

      @@ahmedhelal920 More hidden units will recognize more patterns and more features, which will help if your images have many patterns and objects. It is always recommended to use more hidden units on layers and decrease it after every layer to reach a better solution.

  • @sandiproy330
    @sandiproy330 ปีที่แล้ว

    Very good explanation with a clear easily understandable video. Thank you for your tutorial. Loved it.

  • @khanwali9672
    @khanwali9672 4 ปีที่แล้ว +1

    Hi Thank you for all your tremendous work you make fall in love with Machine learning. don't you dare to stop;) Thank you so so so much.

    • @codebasics
      @codebasics  4 ปีที่แล้ว +3

      Thanks for your kind words khan ☺️ and yes now after reading your comment I am not going to stop 😉

    • @khanwali9672
      @khanwali9672 4 ปีที่แล้ว +1

      @@codebasics bless you.

  • @ahmedzahid8354
    @ahmedzahid8354 2 หลายเดือนก่อน

    thank you from Finland

  • @nikhildaram3354
    @nikhildaram3354 ปีที่แล้ว +2

    how to split the image data into training and testing in folders

  • @sankistudio1771
    @sankistudio1771 7 หลายเดือนก่อน

    Thank you sir, excellent explanation

  • @zaindurani8168
    @zaindurani8168 4 ปีที่แล้ว +1

    No one in universe can teach like this

    • @codebasics
      @codebasics  4 ปีที่แล้ว +1

      Thanks zain for your kind words

  • @rishanVJrathne
    @rishanVJrathne ปีที่แล้ว

    Thank you, It is a great tutorial😍 on CNN

  • @gauravshah8554
    @gauravshah8554 3 ปีที่แล้ว +1

    You are superb in teaching. Please make video on how to deploy such trained models to production.

  • @elma2577
    @elma2577 2 ปีที่แล้ว

    Excellent explanation. 👏

  • @archenemy49
    @archenemy49 3 ปีที่แล้ว

    You are really inspirational and have so much to idolize. Thank you!

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @RadhakrishnanBL
    @RadhakrishnanBL 2 ปีที่แล้ว

    Excellent demo, saved my time.

  • @JapiSandhu
    @JapiSandhu 3 ปีที่แล้ว

    Awesome really like the face to face introduction

    • @codebasics
      @codebasics  3 ปีที่แล้ว +1

      Glad you like it

  • @mohammadhosseinjafari5621
    @mohammadhosseinjafari5621 2 ปีที่แล้ว

    really good explanations. thanks for your great help

  • @BhautikaPatel-gg3ij
    @BhautikaPatel-gg3ij 9 หลายเดือนก่อน

    All the way superb!!!! All videos.

  • @santoshkumarmishra441
    @santoshkumarmishra441 4 ปีที่แล้ว

    great job sir.....keep making videos love to watch and learn from your videos

  • @ivoroupa2925
    @ivoroupa2925 ปีที่แล้ว

    Excellent content! Thank you very much.

  • @居陳
    @居陳 3 ปีที่แล้ว

    I’m from Taiwan. It’s really helpful

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @Piyush-yp2po
    @Piyush-yp2po 5 หลายเดือนก่อน

    For digits: ann gives 90%, cnn gives 99+% on train dataset and 99% on test data, thanks sir

  • @sandhyabansal5264
    @sandhyabansal5264 2 ปีที่แล้ว

    Very lucid explanation

  • @snehasneha9290
    @snehasneha9290 4 ปีที่แล้ว +1

    Tq so munch sir for continuing this series amazing content supreb nice explantion

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      You're most welcome sathiya

  • @8shounak
    @8shounak 4 ปีที่แล้ว

    very nicely explained brother. Loved the teaching style and followed the explanation

  • @ΣοφιαΔουμανη
    @ΣοφιαΔουμανη 3 ปีที่แล้ว +1

    Thank you a lot! You helped me with my project!

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @shuaibalghazali3405
    @shuaibalghazali3405 ปีที่แล้ว

    Thank you very much sir for this 😊

  • @sergiochavezlazo5362
    @sergiochavezlazo5362 ปีที่แล้ว +4

    I found something very important. When you reshape your y into 1 dimension, save it in a different variable and use the original one (2d) in the training and test process. Otherwise, the results change a lot

  • @priyanshujadon3442
    @priyanshujadon3442 3 ปีที่แล้ว

    Your videos are very good...you explain every line of code...it really helps me a lot to teach ML to my students...your videos are even more useful then other ML videos...👌😊

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad you like them!

  • @RanjitSingh-rq1qx
    @RanjitSingh-rq1qx 2 ปีที่แล้ว

    Tq u 💯 much sir, this video is very helpful.😍❤️🌹👍🥰🇮🇳

  • @debojyotisinha5031
    @debojyotisinha5031 4 ปีที่แล้ว +1

    Your approach is very well. You can explain the topics so well and easy to understand the complex topic.

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad to hear that, I am happy this was helpful to you.

  • @jyotiprakashnayak2117
    @jyotiprakashnayak2117 3 ปีที่แล้ว

    Realy sir I like your teaching way

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Thanks and welcome

  • @daggerdudes9211
    @daggerdudes9211 4 ปีที่แล้ว +5

    Your classes are really beginner friendly and I have a doubt will adding more layers improves the accuracy

    • @codebasics
      @codebasics  4 ปีที่แล้ว +3

      yes it might. you can try adding them. sometimes too many layers will overfit a model and while accuracy improves on training set, on test set it might perform poorly. You can use regularization techniques such as adding dropout layer to tackle these issues partially

  • @saadmuhammad4890
    @saadmuhammad4890 3 ปีที่แล้ว

    Thank you so much! Your tutorials are very helpful

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad you like them!

  • @notavailable3331
    @notavailable3331 4 ปีที่แล้ว

    thanks a lot sir for your explanation. i got accuracy of 98.97% using cnn model

  • @Dev-D20
    @Dev-D20 2 ปีที่แล้ว +1

    sir when i running all this code in google colab my accuracy is 0.1 and not increasing in cnn case also.

  • @AdityPai
    @AdityPai 3 ปีที่แล้ว +1

    Thank you for the efforts you put in all these vedios, it is giving us a clear image of what is happening in each part. Thanks alot

  • @jeffallenmbaagborebob5869
    @jeffallenmbaagborebob5869 3 ปีที่แล้ว

    You are the best by far

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      I am happy this was helpful to you.

  • @payamtorna2
    @payamtorna2 3 ปีที่แล้ว

    very nice videos thank you so much bro :)

  • @sohailali5741
    @sohailali5741 4 ปีที่แล้ว +3

    Thank you so much for detailed tutorial. Can you please make a video on Object detection? Specially Faster RCNN and Yolo models.

  • @ajaykundu6446
    @ajaykundu6446 4 ปีที่แล้ว +1

    Sometimes i have thoughts in my mind that is this really happening or is this valuable( i am not judging or not even assuming) as this type of course are paid and with huge amount of money with high demand but how you can give this for freeee ???????
    How sir how ???
    Hats off👍👍👍👍👍and big thanks 👌👌👌
    🙏🙏🙏🙏
    I think this learning won't be stopped ever from you.

    • @codebasics
      @codebasics  4 ปีที่แล้ว +3

      ha ha... that's a nice way of appreciating my work Ajay. Thank you. Well this course is not free, the fee you need to pay is share this with as many as you can (via linkedin, watsapp, facebook groups, quora etc) :)

    • @ajaykundu6446
      @ajaykundu6446 4 ปีที่แล้ว

      @@codebasics will do it definitely
      ✌✌Long live developers👍👍👍

  • @mrkrupeshpatel
    @mrkrupeshpatel 9 หลายเดือนก่อน

    Very nice explanation on CNN....
    how you can simplify such complex topics ? You must be having rich experience in this field...😊

  • @maxgriffiths6968
    @maxgriffiths6968 3 ปีที่แล้ว

    Excellent video. Thank you

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      I am happy this was helpful to you.

  • @DanukaLakshan-o4u
    @DanukaLakshan-o4u 6 หลายเดือนก่อน

    great job sir.....

  • @kmedia5759
    @kmedia5759 3 ปีที่แล้ว

    Thank you
    model.evaluate:10000/10000 [==================] - 1s 57us/sample - loss: 0.0275 - accuracy: 0.9910

  • @kennyhnsom
    @kennyhnsom 11 หลายเดือนก่อน +1

    The ann model refuse to run. It saying keras has no attribute sequential

  • @sanooosai
    @sanooosai ปีที่แล้ว

    great sir thank you

  • @AHMADKELIX
    @AHMADKELIX 3 ปีที่แล้ว

    permission to learn sir. thanks you

  • @rulaalsamarie3607
    @rulaalsamarie3607 3 ปีที่แล้ว

    Thank you 🙏

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @pawanagrawal7653
    @pawanagrawal7653 3 ปีที่แล้ว

    sir I am really appreciated, the way you teach all the concepts related to CNN, and how to build it,
    sir how can get more accuracy using Keras tuner, please make a video on that.

  • @tomcat9761
    @tomcat9761 2 ปีที่แล้ว +2

    Nice tutorial sir. Can you create a chatbot using ANN? I would like to know how you will test that. Thanks!

  • @samirkouiderbouabdallah9392
    @samirkouiderbouabdallah9392 4 ปีที่แล้ว

    thank you very much sir

  • @shreyasb.s3819
    @shreyasb.s3819 3 ปีที่แล้ว

    Really nice video...its helped me lot...
    I want you to start Audio, Video processing tutorial also because I like it your teaching skills.

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @IQTIDAR8
    @IQTIDAR8 3 หลายเดือนก่อน

    the VIdeo is really help full, but you should have also to show where you data set is store, because I am accessing but unable to access my data set from my computer

  • @mainuddinali9561
    @mainuddinali9561 2 ปีที่แล้ว

    GREAT SIR

  • @aloksheth7477
    @aloksheth7477 3 ปีที่แล้ว

    Thanks for nice explanation. Easy to understand the concepts. Can you make video for region CNN and faster R CNN?

  • @moinafatima7990
    @moinafatima7990 3 ปีที่แล้ว +1

    You are doing an amazing work.. I really get intrest in ml after watching your video explanation..
    Sir I'm work on project "image classification using deep neural network" The data set is *CIFAR 10*. Paper on which I'm working it already has 80.2% of accuracy . So by using deep neural network algorithms can I make accuracy beyond 80%

  • @vishnucruz4529
    @vishnucruz4529 ปีที่แล้ว

    Could you explain in detail about the reshaping process, on why its necessary ?

  • @mehdisoleymani6012
    @mehdisoleymani6012 3 ปีที่แล้ว +1

    Thanks a lot for your great courses, is it possible for you to explain my question? How should we add non-image features to our CNN model (features like cat and dog prices) to our flatten layer? Does the CNN model new added features belong to which input image?

  • @mach9libra
    @mach9libra 3 ปีที่แล้ว +2

    Hello, can you please guide for the K-NN, MLP, CNN, Decision Tree, K-Mean Clustering, regression to solve this CIFAR-10 dataset problem. And compare the accuracies for each of the methodologies used.

  • @tonyennis1787
    @tonyennis1787 3 ปีที่แล้ว +1

    Great video. I was hoping you'd visualize the CNN kernels so we could see what they looked like. You specified 32 of them. Does this mean that all 32 are used in every image, and thus are meaningful in every case? that is, you won't have one what has a koala's eyes because the input images also include, say, rocks, buildings, and GPU cards?

  • @XChinaX00
    @XChinaX00 3 ปีที่แล้ว +1

    Thank you for the awesome tutorial. I have one question. Is there a way so I could give a path to one folder and then it would classify images which are in it using this model?

    • @codebasics
      @codebasics  3 ปีที่แล้ว +1

      Yes you can use tensorflow dataset pipeline for that watch TF data pipeline tutorial in this same playlist

    • @XChinaX00
      @XChinaX00 3 ปีที่แล้ว +1

      @@codebasics Thank You, I'll definitely watch it.

  • @giovannicordova4803
    @giovannicordova4803 3 หลายเดือนก่อน

    So are you executing everything in a GPU?

  • @nastaran1010
    @nastaran1010 11 หลายเดือนก่อน

    please explain that, why you reshape x_train in exercise, and also change input_shape in conv2D

  • @fitnessismypassion
    @fitnessismypassion 11 หลายเดือนก่อน

    Hi, thanks for the clear explanation. I was wondering why you did not use softmax activation function in the last layer instead of sigmoid? As far as I know, softmax is preferred in multiclass problems (like in this case) and sigmoid is used for binary classification problems. Let me know and I appreciate your answer in advance.

    • @_ashutoshbhate_
      @_ashutoshbhate_ 11 วันที่ผ่านมา

      I had the same question, finally found someone with the same doubt

  • @Pritamdaspk
    @Pritamdaspk ปีที่แล้ว

    Where can I get the dataset from?

  • @amazighkab9904
    @amazighkab9904 3 ปีที่แล้ว

    amazing

  • @vishalgarg7207
    @vishalgarg7207 2 ปีที่แล้ว

    IT's not the case Dhaval, that ANN is performing badly, if you change the y_train/y_test to categorical and use loss='categorical_crossentropy' it's giving 91% accuracy. I feel CNN will perform certainly better but we may need much higher dataset.

  • @mousumibhaumik1735
    @mousumibhaumik1735 6 หลายเดือนก่อน

    Where is the jupyter notebook code link? Plz share

  • @bassemessam3002
    @bassemessam3002 3 ปีที่แล้ว +2

    Thank you so much for this great tutorial. It is really helpful. I have a question, you used 'sparse crossentropy' in prediction and it's supposed to return the class number but the output of y_pred is an array of the probability of each class, and to get the predicted class we used argmax function to get the index of maximum value?

    • @vaishalibalaji886
      @vaishalibalaji886 2 ปีที่แล้ว +1

      Hello Bassem, "Sparse categorical cross entropy" is the loss function to be used when the actual output Y in the dataset is not in the one hot encoded format. And, sir has used "softmax" as the final activation function in the code showed in the video. It is because of this function that the final output, y_pred is an array of the probability of each class. Hence, finally in order to get the index position of the maximum probability value, which is typically the output class predicted by the CNN model, sir has used the np.argmax function.

  • @inhibited44
    @inhibited44 7 หลายเดือนก่อน

    haven't watch the entire video yet. Is there a way to type in a command which looks for statistical outliers in the data that don't match anything well , so they can be eliminated to improve the model?

  • @uddalakmitra1084
    @uddalakmitra1084 2 ปีที่แล้ว +1

    Dear Sir, I have a data-frame with shape: 6500 rows and 146 cols. It is not a 3D data. How can I apply input_shape parameter to use CNN model?

  • @mekdesmekonnen2242
    @mekdesmekonnen2242 2 ปีที่แล้ว

    Brilliant!

  • @keshavgoyal3106
    @keshavgoyal3106 4 ปีที่แล้ว +8

    sir how i convert the prediction into csv file with column names (filname and label)

    • @sanskartewatia4320
      @sanskartewatia4320 3 ปีที่แล้ว +2

      convert to pandas dataframe and just execute - df.to_csv('df.csv')

  • @AlayaKiDuniya
    @AlayaKiDuniya 2 ปีที่แล้ว

    @codebasics plz make a video on implementation of transfer learning models like inception v3 vgg16 resnet152 for image classification.
    Plzzzzz i am waiting for ur response.
    And can u make one more video on feature concatenation of all models and ensemble method of all

  • @saimaasghar6109
    @saimaasghar6109 ปีที่แล้ว

    I hope you are doing...I had an assignment of image classification and we were suppose to make a confusion matrix I searched on your channel ...and couldn't find any related to confusion matrix. Please make one on that

  • @Kerem-Ertem
    @Kerem-Ertem ปีที่แล้ว

    My Prof. does not teach anything about coding but gives bunch of homework :( But it was healing !

  • @wiekiangh.2542
    @wiekiangh.2542 4 ปีที่แล้ว +1

    great tutorial and I enjoyed it! However, what if I want to classify new images which not in CIFAR dataset, for an instance, I want to classify a butterfly breed. Any suggestion?

    • @codebasics
      @codebasics  4 ปีที่แล้ว +2

      For that you need to add images of butter fly breed in this dataset and train the model again.

    • @wiekiangh.2542
      @wiekiangh.2542 4 ปีที่แล้ว

      @@codebasics Thanks for your reply. Can you give me some clue or code on how to add the new images into the existing dataset to re-train the model with CNN? Do I need to annotate those images if those are not in the cifar, imagenet, coco and google open images? I see that in your last video mentioned about these data source, however, I didn't see any info how to add and train custom dataset.