L-5 | Image Classification Using ResNet-18 and Pytorch

  Рет қаралды 7,118

Code With Aarohi

Code With Aarohi

Күн бұрын

In this tutorial, you will embark on a journey through the world of image classification using the powerful ResNet18 model with PyTorch. We will guide you step-by-step on how to train the model on your dataset, capturing the nuances and features essential for accurate classification. Following training, you'll learn the critical skill of saving your model, enabling you to preserve and utilize your trained model in future tasks. But the learning doesn't stop there! You'll also master the art of loading the model back into your Python environment, a key step for deploying models or continuing training. Finally, you will apply the trained model to new data, testing its ability to classify images accurately. By the end of this tutorial, you'll be well-versed in handling the ResNet18 model for your image classification tasks using PyTorch.
Github: github.com/Aar...
Dataset: github.com/Aar...
For queries: You can comment in comment section or you can email me at aarohisingla1987@gmail.com
#computervision #deeplearning #pytorch #imageclassification #imageclassification

Пікірлер: 35
@youtubeaccount8613
@youtubeaccount8613 4 ай бұрын
this is so so so helpful! i have been stuck for weeks and this is amazing!
@CodeWithAarohi
@CodeWithAarohi 4 ай бұрын
Glad it helped!
@navidnazem4494
@navidnazem4494 4 ай бұрын
Shouldn't we redefine FC to 2 classes?
@НиколайНовичков-е1э
@НиколайНовичков-е1э 7 ай бұрын
Thank you, Aarohi! :)
@CodeWithAarohi
@CodeWithAarohi 7 ай бұрын
Welcome :)
@ashimasingla103
@ashimasingla103 7 ай бұрын
Perfect content
@benoitd94
@benoitd94 2 күн бұрын
hi good tuto. One question i try to create my own dataset. You don't tell in the video if the label process is required ? with labelimg for example ? thx
@CodeWithAarohi
@CodeWithAarohi Күн бұрын
For Image classification task, You don't need to annotate the images. Just create separate folder for each class and then put related images.
@salihamirza456
@salihamirza456 Ай бұрын
hey i have a question that,as we have copied the weights and biases from the loaded model to the new model, then shouldn't we use new_model for performing inference as well?
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Yes
@karthickkuduva9819
@karthickkuduva9819 3 ай бұрын
Mam. Freezing all layers except the final classification layer is called transfer learning. And customized with our own dataset so it's also fine tuned model. The way I understand is correct ?
@CodeWithAarohi
@CodeWithAarohi 2 ай бұрын
Yes, your understanding is correct!
@soravsingla8782
@soravsingla8782 8 ай бұрын
What an amazing video
@CodeWithAarohi
@CodeWithAarohi 8 ай бұрын
Glad it is useful!
@tilkesh
@tilkesh Ай бұрын
Thank you very much
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
You are welcome
@rafeeda3580
@rafeeda3580 8 ай бұрын
Well explained.❤❤❤ Any videos of medical image classification available
@CodeWithAarohi
@CodeWithAarohi 8 ай бұрын
Not yet!
@Sunil-ez1hx
@Sunil-ez1hx 8 ай бұрын
Awesome
@CodeWithAarohi
@CodeWithAarohi 8 ай бұрын
Thanks!
@therock8815
@therock8815 6 ай бұрын
plz provided the updated code of vgg-16/ resnet50 or any that resolved the version error thanks
@bilkisuismail6096
@bilkisuismail6096 7 ай бұрын
Thank you ma, but how did you get mean and standard deviation?
@dobijr7900
@dobijr7900 5 ай бұрын
they are gotten from imagenet after working on millions of images
@AlAmin-xy5ff
@AlAmin-xy5ff 8 ай бұрын
Mam make a video on YOLOv8 model customization or change layer
@CodeWithAarohi
@CodeWithAarohi 8 ай бұрын
I will try
@pifordtechnologiespvtltd5698
@pifordtechnologiespvtltd5698 7 ай бұрын
Nice video
@CodeWithAarohi
@CodeWithAarohi 2 ай бұрын
Thanks
@ABHINAYYADAV-j2h
@ABHINAYYADAV-j2h 8 ай бұрын
it is giving error I am taking 11 classes for this for emoji prediction
@ABHINAYYADAV-j2h
@ABHINAYYADAV-j2h 8 ай бұрын
from PIL import Image from torchvision import transforms # Load and preprocess the unseen image image_path = '/content/test.png' # Replace with the path to your image image = Image.open(image_path) preprocess = transforms.Compose([ transforms.Resize(256), transforms.CenterCrop(224), transforms.ToTensor(), transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) ]) input_tensor = preprocess(image) input_batch = input_tensor.unsqueeze(0) # Add a batch dimension
@ABHINAYYADAV-j2h
@ABHINAYYADAV-j2h 8 ай бұрын
RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 0
@huyngo8567
@huyngo8567 2 ай бұрын
Your link is broken
@CodeWithAarohi
@CodeWithAarohi 2 ай бұрын
github.com/AarohiSingla/Image-Classification-Using-Pytorch
@abrarislam6509
@abrarislam6509 4 ай бұрын
Are you married?
@CodeWithAarohi
@CodeWithAarohi 4 ай бұрын
Yes
L-6 | Significance of Optimizers | Deep Learning
11:00
Code With Aarohi
Рет қаралды 761
Image Classification Using Pytorch and Convolutional Neural Network
21:29
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 49 МЛН
WORLD BEST MAGIC SECRETS
00:50
MasomkaMagic
Рет қаралды 47 МЛН
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
Automated Data Labeling Using Florence-2
17:08
Code With Aarohi
Рет қаралды 2,3 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 302 М.
Image Classification Pipeline Overview - Final University Project
2:44:41
Python Simplified
Рет қаралды 7 М.
Train YOLOv8 Classification on Your Custom Dataset | Step By Step Guide
5:25
Artificially Intelligent
Рет қаралды 12 М.
Image Classification Using Vision Transformer | ViTs
34:13
Code With Aarohi
Рет қаралды 40 М.
Image classification with Python and Scikit learn | Computer vision tutorial
32:28
Computer vision engineer
Рет қаралды 53 М.