Image Classification Using Pytorch and Convolutional Neural Network

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • 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

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

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

    Keep sharing such an amazing knowledgeable content in form of very easy to learn videos.

  • @user-mc5ox7cv8k
    @user-mc5ox7cv8k 7 месяцев назад +2

    How can someone explain such complex concepts in a very simple way? I adore you.

  • @Sunil-ez1hx
    @Sunil-ez1hx 10 месяцев назад +2

    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 👏👍

  • @utkarshtripathi9118
    @utkarshtripathi9118 10 месяцев назад +2

    Ossm video well explained

  • @mainhoontom2176
    @mainhoontom2176 10 месяцев назад +1

    Very nice Aarohi Mam. Thanks for making complex stuff simple.

  • @soravsingla8782
    @soravsingla8782 10 месяцев назад +1

    Really knowledgeable video & explained in a Very well manner. Thank you

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

    thanks for such easy tutorial on image classification mam.... worth watching your channel

  • @pifordtechnologiespvtltd5698
    @pifordtechnologiespvtltd5698 5 месяцев назад

    Really amazing work

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

    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

  • @Sunil-ez1hx
    @Sunil-ez1hx 10 месяцев назад +1

    Simple awesome . Thank you

  • @arnavthakur5409
    @arnavthakur5409 10 месяцев назад +1

    Thank you mam for sharing

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

    very helpful video

  • @luisaruquipac.381
    @luisaruquipac.381 2 месяца назад

    Excellent content! Thank you

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

    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  10 месяцев назад

      Thank you so much for your kind words and support! It means a lot to me. 😊🙏

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

    Very good video

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

    Great video, thanks

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

    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.

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

    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  8 месяцев назад

      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 10 месяцев назад

    Code with Aarohi is best platform to learn Artificial Intelligence & Data Science
    #BestChannel #CodeWithAarohi

  • @ravindrakarande59
    @ravindrakarande59 8 месяцев назад +1

    Please share the dataset used in this video

  • @Arceus948
    @Arceus948 5 месяцев назад

    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)

  • @felipemunoz6561
    @felipemunoz6561 9 месяцев назад +1

    where i can find that dataset?, i just found of CNN in his github :(

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

      universe.roboflow.com/enrico-garaiman/flowers-y6mda/dataset/7

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

    Thank you very much. Please make a video that contains an end to end computer vision project even if the project is basic.

  • @user-co6pu8zv3v
    @user-co6pu8zv3v 10 месяцев назад

    Thank you!

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

    good work.... do more in Gen ai and LLm's

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

    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  2 месяца назад +1

      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 2 месяца назад

      @@CodeWithAarohi thanks for your guidance mam

  • @deepakchaudhary3149
    @deepakchaudhary3149 5 месяцев назад +1

    mam if image is of .npy file extension then how to load it?

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

    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.

  • @JohnSmith-gu9gl
    @JohnSmith-gu9gl Месяц назад

    how did you come up with the values: [0.485, 0.456, 0.406] and [0.229, 0.224, 0.225] ?

    • @DBWorld
      @DBWorld 25 дней назад +1

      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 25 дней назад

      @@DBWorld thanks!

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

    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  7 месяцев назад

      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 7 месяцев назад

      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

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

    Yea

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

    Can I use flatten() instead of Randomhorizontal()

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

    Tq mam

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

    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  9 месяцев назад

      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.

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

    Where is the dataset

    • @CodeWithAarohi
      @CodeWithAarohi  3 месяца назад +1

      universe.roboflow.com/enrico-garaiman/flowers-y6mda/dataset/7

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

      @@CodeWithAarohi
      Thank you ❤️

  • @imihhdude
    @imihhdude 5 месяцев назад

    Can the code snippet apply to multiple labels

  • @user-rk9tz4qo2w
    @user-rk9tz4qo2w 10 месяцев назад

    Where is Dataset?

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

    how can i get this dataset

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

      universe.roboflow.com/search?q=flower%20classification

  • @krishnazala8735
    @krishnazala8735 5 месяцев назад

    can you provide dataset

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

    where i can get the datasets

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

      universe.roboflow.com/enrico-garaiman/flowers-y6mda/dataset/7

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

    Thank you, I sent you a mail you didn't answer me,I need your advice please 🙏 , thank you

  • @arnavthakur5409
    @arnavthakur5409 10 месяцев назад +1

    Keep sharing such an amazing knowledgeable content in form of very easy to learn videos.