PyTorch - The Basics of Transfer Learning with TorchVision and AlexNet

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

Dennis Madsen

Dennis Madsen

3 жыл бұрын

Basic usage of PyTorch. From simple low-level usage of Adagrad to building up your neural networks with the model.nn module from PyTorch. In this video we look at how to use a pre-trained AlexNet for transfer learning. We do so by removing the last layer of the network, and retraining the weights from our own small dataset.
Notebooks: github.com/madsendennis/noteb...
Original blogpost link: www.learnopencv.com/image-cla...
PyTorch playlist: • PyTorch - The Basics
Deep Learning introduction playlist: • Deep Learning: Part1 -...

Пікірлер: 21
@viviandataact7281
@viviandataact7281 3 жыл бұрын
Thank you very much for this! I am currently doing my undergrad thesis in PyTorch and freaking out. Your explanation is quite clear and helpful. Keep going ^^
@tudoronrec
@tudoronrec Жыл бұрын
same :D
@kvdiatpune8753
@kvdiatpune8753 Жыл бұрын
Thanks ,nicely explained
@tudoronrec
@tudoronrec Жыл бұрын
Thank you for the information!
@tycstahX
@tycstahX 3 жыл бұрын
Great stuff!
@vikramrs4191
@vikramrs4191 2 жыл бұрын
Is there an example how we can use our own trained models in transfer learning of other images in keras library
@nagamadhubabuvikkurthi5695
@nagamadhubabuvikkurthi5695 2 жыл бұрын
please tell me how can I build a confusion matrix from this.,
@shinchannohara3927
@shinchannohara3927 2 ай бұрын
will the same code with num-out 200 work for 200 class classification with such great accuracy
@user-ot6yk6ie2f
@user-ot6yk6ie2f Жыл бұрын
i can save this model as usual (by using alexnet) and use it with other model on open cv right?
@BudgiePanic
@BudgiePanic 6 ай бұрын
nice
@murtazajabalpurwala8124
@murtazajabalpurwala8124 2 жыл бұрын
Hi thanx for the video, appriciate it, but I believe this tutorial was more suited for a moderate level to advanced level. I still had many concepts to dig and I thought you were skipping on many things that were still new to me. May be you can make another video where you can guide data loading process and training process more in details. Thanx again
@DennisMadsen
@DennisMadsen 2 жыл бұрын
Noted. Thanks for the input Murtaza :)
@arpanmaity953
@arpanmaity953 9 ай бұрын
when i am going to train vgg model with 38 classes then that error occur: RuntimeError: Given groups=1, weight of size [64, 3, 3, 3], expected input[2, 38, 224, 224] to have 3 channels, but got 38 channels instead, when i use summarytool, how to slove the error
@danielac520
@danielac520 2 жыл бұрын
hi! which is the difference between freezing the layers or using model.eval()?
@DennisMadsen
@DennisMadsen 2 жыл бұрын
Hi. In eval mode you notify all the layers that you are not in training mode. Which also has an impact on e.g. dropout and batchnorm layers. With no_grad (freeze) - this is often used for training to avoid computing the gradient for X number of layers. But indeed the goal of the two functions looks a bit the same - do not compute the gradient.
@danielac520
@danielac520 2 жыл бұрын
@@DennisMadsen Thanks for your answer! I understand, Anyway computing the gradient does not imply the update of parameters right ?
@DennisMadsen
@DennisMadsen 2 жыл бұрын
@@danielac520 Glad it was helpful. And true. The parameters are not updated when the gradients are. You would then need to update them with something like: optimizer.step()
@danielac520
@danielac520 2 жыл бұрын
@@DennisMadsen Got it :)
@user-cc4rq5py1h
@user-cc4rq5py1h 8 ай бұрын
unable to train my data
@muhammadzubairbaloch3224
@muhammadzubairbaloch3224 3 жыл бұрын
sir please make lecture on GAN
@DennisMadsen
@DennisMadsen 3 жыл бұрын
Hereby put on my video lidt Muhammad. Thanks a lot for the suggestion!
PyTorch - The Basics
16:13
Dennis Madsen
Рет қаралды 6 М.
L-4 | Image Classification Using ResNet-18 and Pytorch
20:16
Code With Aarohi
Рет қаралды 4,1 М.
TorchVision Quick Start: Image classifier in 10 mins
17:15
Samuel Chan
Рет қаралды 1,6 М.
Pytorch Transfer Learning and Fine Tuning Tutorial
9:02
Aladdin Persson
Рет қаралды 47 М.
Transfer Learning Using Keras(ResNet-50)| Complete Python Tutorial|
9:58
7 PyTorch Tips You Should Know
17:12
Edan Meyer
Рет қаралды 19 М.
Pytorch ResNet implementation from Scratch
30:25
Aladdin Persson
Рет қаралды 88 М.
ResNet (actually) explained in under 10 minutes
9:47
rupert ai
Рет қаралды 74 М.
PyTorch Course (2022), Part 4: Image Classification (MNIST)
30:21
Mr. P Solver
Рет қаралды 21 М.
Building a Neural Network with PyTorch in 15 Minutes | Coding Challenge
20:34
¿Ella lo besó? #divertido #broma
0:18
SKITS Spanish
Рет қаралды 6 МЛН
Moleque tá marcando mais que o Vasco 😂
0:11
Léo Negão
Рет қаралды 17 МЛН
Making MUSIC with RANDOM THINGS 🎵
0:24
LosWagners ENG
Рет қаралды 30 МЛН
Did you find it?! 🤔✨✍️ #funnyart
0:11
Artistomg
Рет қаралды 114 МЛН
Sigma Girl Education #sigma #viral #comedy
0:16
CRAZY GREAPA
Рет қаралды 12 МЛН