Easy Beginner Tutorial: Building a Custom CNN from Scratch for Image Classification with PyTorch

preview_player
Показать описание
Welcome to our Easy Beginner Tutorial on building a Custom CNN from Scratch for Image Classification using PyTorch!

In this step-by-step tutorial, we'll guide you through the process of creating your own Convolutional Neural Network (CNN) architecture using the powerful PyTorch library. Whether you're new to deep learning or looking to deepen your understanding of CNNs, this beginner-friendly guide is perfect for you.

By the end of this tutorial, you'll have a solid understanding of CNNs and be able to train your own custom models for image classification tasks with PyTorch.

Join us on this exciting journey into the world of deep learning! Whether you're a student, developer, or AI enthusiast, this tutorial will equip you with the skills to build and train your very own CNN from scratch.

🔔 Don't forget to subscribe to our channel for more exciting tutorials on deep learning, PyTorch, and artificial intelligence!

If you have any questions or need further clarification, feel free to leave a comment below. Happy coding and see you in the tutorial!
Рекомендации по теме
Комментарии
Автор

Following along with this tutorial right now, great stuff. Anyways I wanted to ask, in one of your lines of code you have "self.fc2 = nn.Linear(64, 2) # 2 output classes: babby and flower" if I wanted to do this with more than 2 classes would I change this to nn.Linear(64, 3) for 3 classes and so on? what else would I need to change besides extra stuff in input and testing?

vintage
Автор

i made my CNN and trained it, then put a separate python file for the post testing and main usage like you did on ln 16 but everytime i run the code with a path to an image, it reruns the neural net going through the training epochs before making the prediction based on my inputted image. ive inputted the code exactly the same as you, is it because im running it in a separate python file?? I also tried it using torch.load(path) and model.load_state_dict() to load the trained neural net but the same issue happens again

briiiiiiaan
Автор

Nice video. But do you know how to fix error: image should be a tensor.. Thank you

gilbertalerta
Автор

Could you please provide this script in the description?

mansimishra
Автор

hi, i have followed your tutorial and so far have successfully train the system. However, once I have put my testing image for output and it shows "output with shape [1, 224, 224] doesn't match the broadcast shape [3, 224, 224]" . Is it because im using gray image? and how to classify the gray images?

kakuancheong