Image Classification Using Pytorch and Convolutional Neural Network

  Рет қаралды 18,506

Code With Aarohi

Code With Aarohi

Күн бұрын

This video provides a comprehensive guide on creating an image classification model using PyTorch and Convolutional Neural Networks (CNNs). We dive into the world of deep learning, focusing on the development of a custom dataset to train and evaluate our model. Whether you're a beginner looking to get started with image classification or an enthusiast seeking to enhance your PyTorch and CNN skills, this video is the perfect resource for you.
Github: github.com/Aar...
For queries: You can comment in comment section or you can mail me at aarohisingla1987@gmail.com
#imageclassification #computervision #pytorch #cnn #convolutionalneuralnetworks #convolutionalneuralnetwork

Пікірлер: 90
@SagarLekhak
@SagarLekhak 8 ай бұрын
How can someone explain such complex concepts in a very simple way? I adore you.
@CodeWithAarohi
@CodeWithAarohi 8 ай бұрын
Glad my video is helpful 🙂
@arnavthakur5409
@arnavthakur5409 11 ай бұрын
Keep sharing such an amazing knowledgeable content in form of very easy to learn videos.
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Thank you, I will
@Sunil-ez1hx
@Sunil-ez1hx 11 ай бұрын
Hello Ma’am Your AI and Data Science content is consistently impressive! Thanks for making complex concepts so accessible. Keep up the great work! 🚀 #ArtificialIntelligence #DataScience #ImpressiveContent 👏👍
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
My pleasure 😊
@josephmyalla3611
@josephmyalla3611 5 күн бұрын
Great, Short and Clear
@CodeWithAarohi
@CodeWithAarohi Күн бұрын
Thanks!
@mainhoontom2176
@mainhoontom2176 11 ай бұрын
Very nice Aarohi Mam. Thanks for making complex stuff simple.
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Most welcome 😊
@soravsingla8782
@soravsingla8782 11 ай бұрын
Really knowledgeable video & explained in a Very well manner. Thank you
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Glad it was helpful!
@yasharazadvatan6673
@yasharazadvatan6673 13 күн бұрын
Hi, thank you for sharing this great content. I have a question; in 19th minute of the video, you create a model and load the trained model. also you create new_model variable. in 20th minute of the video, you write output = model(input_batch) I get confused, where we use new_model?
@karthickkuduva9819
@karthickkuduva9819 3 ай бұрын
thanks for such easy tutorial on image classification mam.... worth watching your channel
@CodeWithAarohi
@CodeWithAarohi 3 ай бұрын
Glad to hear that
@ashimasingla103
@ashimasingla103 10 ай бұрын
Hello Aarohi Your channel is very knowledgeable & helpful for all Artificial Intelligence/ Data Scientist Professionals. Stay blessed & keep sharing such a good content. Your channel really needs more likes & share so to reach maximum AI professionals who can encash from it
@CodeWithAarohi
@CodeWithAarohi 10 ай бұрын
So nice of you
@utkarshtripathi9118
@utkarshtripathi9118 11 ай бұрын
Ossm video well explained
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Thank you so much
@Sunil-ez1hx
@Sunil-ez1hx 11 ай бұрын
Simple awesome . Thank you
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Glad you liked it!
@soravsingla8782
@soravsingla8782 11 ай бұрын
Hi Aarohi, your content is excellent and your channel is one of the best Artificial Intelligence channel but still not getting that much of likes which your channel deserves. Hope you succeed #AI #ArtificialIntelligence #DataScience #EducationalContent
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Thank you so much for your kind words and support! It means a lot to me. 😊🙏
@arnavthakur5409
@arnavthakur5409 11 ай бұрын
Thank you mam for sharing
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Thanks for liking
@shanikananayakkara4451
@shanikananayakkara4451 11 ай бұрын
Thank you very much for the amazing knowledge sharing. If you can, please explain how we can use deep unfolding networks for image classification optimisation using a code.
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Sure I will
@omerkaya2320
@omerkaya2320 11 ай бұрын
Thank you very much. Please make a video that contains an end to end computer vision project even if the project is basic.
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Sure!
@pifordtechnologiespvtltd5698
@pifordtechnologiespvtltd5698 6 ай бұрын
Really amazing work
@CodeWithAarohi
@CodeWithAarohi 6 ай бұрын
Thank you so much 😀
@ravindrakarande59
@ravindrakarande59 9 ай бұрын
Please share the dataset used in this video
@luisaruquipac.381
@luisaruquipac.381 3 ай бұрын
Excellent content! Thank you
@CodeWithAarohi
@CodeWithAarohi 3 ай бұрын
Glad you liked it!
@CodeWithAarohi
@CodeWithAarohi 3 ай бұрын
Thank you!
@jmxt3
@jmxt3 9 ай бұрын
Great video, thanks
@CodeWithAarohi
@CodeWithAarohi 9 ай бұрын
Glad you liked it!
@rainlarh5306
@rainlarh5306 9 ай бұрын
Hi Arohi! Thanks for sharing the knowledge:) I have a qns to clarify but I'm not sure whether would you be able to see my comments. How will the the code understand or how was the datasets being seperated into inputs and labels while running the training loop as shown in your video?
@CodeWithAarohi
@CodeWithAarohi 9 ай бұрын
This line is responsible for reading labels and images: datasets.ImageFolder(os.path.join(data_dir, x), data_transforms[x]) for x in ['train', 'val']}
@Sunil-ez1hx
@Sunil-ez1hx 11 ай бұрын
Code with Aarohi is best platform to learn Artificial Intelligence & Data Science #BestChannel #CodeWithAarohi
@karthickkuduva9819
@karthickkuduva9819 3 ай бұрын
Mam i tried with my own cnn model including dropout and batch normalization. And i achieved accuracy of 64% and model predicted output label correctly with image. 64% of accuracy is not bad. How to increase accuracy mam ?.
@CodeWithAarohi
@CodeWithAarohi 3 ай бұрын
1- Increase the amount and diversity of your training data. 2- Increase the number of layers (both convolutional and fully connected layers) to capture more complex patterns. 3- Experiment with different hyperparameters like learning rate, optimizers. 4- Use pre-trained models (e.g., VGG, ResNet, Inception) and fine-tune them on your dataset.
@karthickkuduva9819
@karthickkuduva9819 3 ай бұрын
@@CodeWithAarohi thanks for your guidance mam
@dibo1934
@dibo1934 7 ай бұрын
very helpful video
@CodeWithAarohi
@CodeWithAarohi 7 ай бұрын
Glad it was helpful!
@MS-yy2dh
@MS-yy2dh 22 күн бұрын
Thank for the video. Can I ask - how do you crate the directory structure with just daisies and dandelions in separate folders? The file I have downloaded (from the link you give) has daisy, dandelion, rose, sunflower and tulip, all together.
@CodeWithAarohi
@CodeWithAarohi 21 күн бұрын
delete rest of the folders
@harshawithhonor6992
@harshawithhonor6992 7 ай бұрын
Hello ma'am, could you please provide the source from where I could get the image files to run this project. Also, do you have any citations (references) for this project.
@felipemunoz6561
@felipemunoz6561 10 ай бұрын
where i can find that dataset?, i just found of CNN in his github :(
@CodeWithAarohi
@CodeWithAarohi 10 ай бұрын
universe.roboflow.com/enrico-garaiman/flowers-y6mda/dataset/7
@soravsingla6574
@soravsingla6574 11 ай бұрын
Very good video
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Thanks
@andreadotta73
@andreadotta73 8 ай бұрын
Hello, great video! I wanted to ask why you used model instead of new_model in the line output = model(input_batch)? new_model should have only 2 neurons in the last layer and therefore choose between two solutions, while model still has all the neurons. Am I correct or am I mistaken? Thanks!!
@CodeWithAarohi
@CodeWithAarohi 8 ай бұрын
Check the cell below "Classification on unseen image". Therewe are loading a pre-trained ResNet-18 model and its saved weights from 'flower_classification_model.pth', then creates a new ResNet-18 model adjusted to classify 2 classes (daisy and dandelion). It copies only the first 2 output units' weights and biases from the loaded model to the final layer of the new model, effectively adapting the pre-trained model for a 2-class problem.
@andreadotta73
@andreadotta73 8 ай бұрын
Okay, thank you! So, load the model with 1000 final nodes and then load our model which has only 2 outputs. Next, we create a new model and copy only the first 2 weights and biases from the initial model. So, to understand, I could directly load the pre-trained model with the exact number of output units, then load my model and use that@@CodeWithAarohi
@Memorable_days90s
@Memorable_days90s 4 ай бұрын
Can I use flatten() instead of Randomhorizontal()
@НиколайНовичков-е1э
@НиколайНовичков-е1э 11 ай бұрын
Thank you!
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Welcome!
@commoncats5437
@commoncats5437 11 ай бұрын
good work.... do more in Gen ai and LLm's
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Noted!
@Arceus948
@Arceus948 6 ай бұрын
hey, i m working on an image classifcation project but i m confused what should be the order of preprocessing the images. is my below order of image prepprocessing correct?? step - 1 -> Resizing to 64x64 (Both Train & Validation dataset) step - 2 ->Splitting dataset into train and validation step - 3 ->Augmentation (Only Train data) step - 4 ->Normalization (Both Train & Validation dataset)
@CodeWithAarohi
@CodeWithAarohi 5 ай бұрын
Correct
@deepakchaudhary3149
@deepakchaudhary3149 6 ай бұрын
mam if image is of .npy file extension then how to load it?
@saranshtiwari8543
@saranshtiwari8543 3 ай бұрын
x = np.load("x.npy")
@JohnSmith-gu9gl
@JohnSmith-gu9gl 2 ай бұрын
how did you come up with the values: [0.485, 0.456, 0.406] and [0.229, 0.224, 0.225] ?
@DBWorld
@DBWorld Ай бұрын
These values are taken for ImageNet dataset. You need to arrive with your own mean[R,B,G] and std[R,B,G] values for your kind of training dataset.
@JohnSmith-gu9gl
@JohnSmith-gu9gl Ай бұрын
@@DBWorld thanks!
@Thejus_tv
@Thejus_tv 20 күн бұрын
How can i find that? @DBWorld can you explain?
@Mehrdadkh87
@Mehrdadkh87 11 ай бұрын
Yea
@gowthamggp4657
@gowthamggp4657 8 ай бұрын
Tq mam
@CodeWithAarohi
@CodeWithAarohi 8 ай бұрын
welcome!
@nabeelbaig2292
@nabeelbaig2292 10 ай бұрын
I have a quick question regarding this video, Aarohi. I watched your video and cloned your GitHub repository to train a dataset of approximately 100 bank cheque images. However, I encountered an issue with the model's performance. When I tested it with non-cheque images, it incorrectly classified them as cheques. On the other hand, it also misclassified bank cheque images as something other than cheques. Can you help me understand and address this problem?
@CodeWithAarohi
@CodeWithAarohi 10 ай бұрын
Imbalanced data can lead to misclassification issues. If you have significantly more cheque images than non-cheque images (or vice versa), it can skew the model's performance. You might need to balance the dataset by oversampling the minority class or undersampling the majority class.
@krishnazala8735
@krishnazala8735 6 ай бұрын
can you provide dataset
@imihhdude
@imihhdude 6 ай бұрын
Can the code snippet apply to multiple labels
@CodeWithAarohi
@CodeWithAarohi 6 ай бұрын
Yes
@imihhdude
@imihhdude 6 ай бұрын
@@CodeWithAarohi thank you 🫶🏻
@shaikhyaqoob9386
@shaikhyaqoob9386 4 ай бұрын
how can i get this dataset
@CodeWithAarohi
@CodeWithAarohi 4 ай бұрын
universe.roboflow.com/search?q=flower%20classification
@mohamedragab8644
@mohamedragab8644 4 ай бұрын
Where is the dataset
@CodeWithAarohi
@CodeWithAarohi 4 ай бұрын
universe.roboflow.com/enrico-garaiman/flowers-y6mda/dataset/7
@mohamedragab8644
@mohamedragab8644 4 ай бұрын
@@CodeWithAarohi Thank you ❤️
@Ai_Engineer
@Ai_Engineer 7 ай бұрын
where i can get the datasets
@CodeWithAarohi
@CodeWithAarohi 7 ай бұрын
universe.roboflow.com/enrico-garaiman/flowers-y6mda/dataset/7
@NabeelBaig-p1y
@NabeelBaig-p1y 11 ай бұрын
Where is Dataset?
@NabeelBaig-p1y
@NabeelBaig-p1y 11 ай бұрын
Where is Dataset directory?
@adelilyasgoffa2717
@adelilyasgoffa2717 11 ай бұрын
Thank you, I sent you a mail you didn't answer me,I need your advice please 🙏 , thank you
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Let me check
@arnavthakur5409
@arnavthakur5409 11 ай бұрын
Keep sharing such an amazing knowledgeable content in form of very easy to learn videos.
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Thank you, I will
L-5 | Image Classification Using ResNet-18 and Pytorch
20:16
Code With Aarohi
Рет қаралды 7 М.
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
Worst flight ever
00:55
Adam W
Рет қаралды 15 МЛН
Image Classification using CNN Keras | Full implementation
17:56
Coding Lane
Рет қаралды 176 М.
Image Classification CNN in PyTorch
30:29
NeuralNine
Рет қаралды 4,9 М.
Building a Neural Network with PyTorch in 15 Minutes | Coding Challenge
20:34
Build a Deep CNN Image Classifier with ANY Images
1:25:05
Nicholas Renotte
Рет қаралды 608 М.
Convolutional Neural Network (CNN) Image Classification in Matlab
51:12
Nuruzzaman Faruqui
Рет қаралды 122 М.
PyTorch Tutorial 14 - Convolutional Neural Network (CNN)
22:07
Patrick Loeber
Рет қаралды 190 М.