Autoencoder In PyTorch - Theory & Implementation

  Рет қаралды 69,096

Patrick Loeber

Patrick Loeber

Күн бұрын

Пікірлер: 83
@patloeber
@patloeber 3 жыл бұрын
Let me know if you enjoyed the new animations in the beginning and want to see this more in the future :)
@sumithhh9379
@sumithhh9379 3 жыл бұрын
Hi Patrick, Any plans to have a series on NLP state of the art models?
@MrDeyzel
@MrDeyzel 3 жыл бұрын
They're great
@md.musfiqurrahaman8612
@md.musfiqurrahaman8612 3 жыл бұрын
Love the animations and want more. Learning pytorch and following your tutorials.
@maharshipathak
@maharshipathak 5 ай бұрын
For python 3.11+, pytorch 2.3+ change the dataiter.next() to next(dataiter)
@AI-kr7mj
@AI-kr7mj 3 күн бұрын
Thanks man
@jh-pq9tp
@jh-pq9tp 3 жыл бұрын
big thanks to you. i cannot imagine how could i learn my dl course without your tutorial. Your work is the best in youtube so far!
@astridbrenner2957
@astridbrenner2957 3 жыл бұрын
This channel is so underrated.Please upload tutorials about Django
@starlite5097
@starlite5097 3 жыл бұрын
I love all your PyTorch videos, please do more :D
@patloeber
@patloeber 3 жыл бұрын
Thanks! I will :)
@saadmunir1467
@saadmunir1467 3 жыл бұрын
Its reaallly nice but it would be a very nice addition to include variational autoencoders and Generative adversial networks as well :). Maybe they can be helpful to many struggling with class imbalance during classification
@patloeber
@patloeber 3 жыл бұрын
Great suggestion!
@CodeWithTomi
@CodeWithTomi 3 жыл бұрын
Yet another Pytorch video🔥
@devadharshan6328
@devadharshan6328 3 жыл бұрын
Can u help to implement pytorch with django
@patloeber
@patloeber 3 жыл бұрын
man you are fast :D
@devadharshan6328
@devadharshan6328 3 жыл бұрын
Can u upload Ur GUI chat bot code in GitHub I tried code along approach I was able to learn the concept but I got some few bugs . Can u upload it
@patloeber
@patloeber 3 жыл бұрын
I added the code here: github.com/python-engineer/python-fun
@devadharshan6328
@devadharshan6328 3 жыл бұрын
@@patloeber thanks
@adityasaini491
@adityasaini491 3 жыл бұрын
Hey Patrick a really informative and concise video! Thoroughly enjoyed it :DD Just a small correction at 12:51, you used the word dimension while explaining the Normalize transform, whereas the two attributes are just the mean and standard deviation of the resultant normalized data.
@patloeber
@patloeber 3 жыл бұрын
thanks for the hint!
@tilkesh
@tilkesh 2 ай бұрын
for _ in range(100): print("Thank you")
@salimibrahim459
@salimibrahim459 3 жыл бұрын
Nice, was waiting for this :)
@patloeber
@patloeber 3 жыл бұрын
Hope you enjoyed it!
@Mesenqe
@Mesenqe 3 жыл бұрын
This channel is really good, I learned PyTorch from this channel. Guys I assure you subscribe to this channel.
@patloeber
@patloeber 3 жыл бұрын
Thanks so much:) appreciate the nice words
@ingenuity8886
@ingenuity8886 5 ай бұрын
Thank you so much , you explained it really good.
@ayankashyap5379
@ayankashyap5379 3 жыл бұрын
at 22:17 when calculating the shape of the conv output, it should be 128*128*1 => 64*64 * 16 and the rest should also be different accordingly
@saeeddamadi3823
@saeeddamadi3823 3 жыл бұрын
Thank you so much for clear presentation of Autoencoder!
@patloeber
@patloeber 3 жыл бұрын
glad you like it!
@shahinghasemi2346
@shahinghasemi2346 3 жыл бұрын
Thank you for your nice tutorials please do the same for a non-image data. I'm curious to see CNN auto-encoders with non-image data.
@falklumo
@falklumo Жыл бұрын
It should be noted that the performance difference between Linear and CNN as shown here comes from the chosen compression factor. Linear chose 12 Byte per image, CNN chose 256 Byte per image, where an original image is 784 Byte. So, the CNN code does not compress enough, less than PNG actually! You need two more linear layers to compress 64 down to 16 and then 4.
@danielevanzan4340
@danielevanzan4340 28 күн бұрын
Is it wrong to choose 4 feature maps in the last CNN layer, without adding the 2 linear layers?
@aisidamayomi8534
@aisidamayomi8534 3 ай бұрын
Please can you do for a network intrusion detection
@huoguo7426
@huoguo7426 2 жыл бұрын
Great video! Could you provide the same walkthrough for a variational autoencoder? Or point point me to a good walkthrough on the theory and implementation of a variational autoencoder?
@Jerrel.A
@Jerrel.A 2 жыл бұрын
TopNotch explanation! Thx.
@markavilin5020
@markavilin5020 2 жыл бұрын
Very clear, thank you very much
@ujjwalkumar-uf8nj
@ujjwalkumar-uf8nj Жыл бұрын
Hey Patrick I used your exact code to train the CNN based autoencoder but couldn't get it to converge without Batch Normalization, after adding BatchNorm2d after every ReLU it works fine, but without it, it doesn't, tried different values for lr from 1e-2 to 1e-5. I was training on MNIST dataset only. the loss becomes NaN or ranges between 0.10 to 0.09.
@anarkaliprabhakar6640
@anarkaliprabhakar6640 9 ай бұрын
Nice explanation
@martinmayo8197
@martinmayo8197 3 жыл бұрын
I don't understand a little bit the sintaxis. Why do you define the method 'forward' but never call it explicitly ? Maybe the line "recon = model(img)" is where you are using it, but I didn't know that it could be done like this. I would had written "recon = model.forward(img)", is it the same ?
@devadharshan6328
@devadharshan6328 3 жыл бұрын
Great animations my suggestion is to add in more animations not only in theory but also in the working of the code . Just my suggestion but great video thanks for Ur teaching.
@patloeber
@patloeber 3 жыл бұрын
thanks! definitely a good idea
@satpalsinghrathore2665
@satpalsinghrathore2665 Жыл бұрын
Very cool. Thank you.
@DiegoAndresAlvarezMarin
@DiegoAndresAlvarezMarin 3 жыл бұрын
Beautifully explained!! thank you!
@garikhakobyan3013
@garikhakobyan3013 3 жыл бұрын
hello, nice videos you have. looking forward new videos on paper review and implementations.
@3stdv93
@3stdv93 Жыл бұрын
Thanks ❤
@YounasKhan-vm8nr
@YounasKhan-vm8nr 6 ай бұрын
Do you have anything specific for face images, this won't work on face images.
@user-wr4yl7tx3w
@user-wr4yl7tx3w 2 жыл бұрын
But how do we leverage the low dimensional embedding given that they represent the PCA?
@harshkumaragarwal8326
@harshkumaragarwal8326 3 жыл бұрын
Great work!! Thanks :))
@saurrav3801
@saurrav3801 3 жыл бұрын
Bro always waiting for your pyt🔥rch video ....🤙🏼🤙🏼🤙🏼
@patloeber
@patloeber 3 жыл бұрын
🙌
@ArponBiswas-wq3sh
@ArponBiswas-wq3sh 6 ай бұрын
Very nice but need more
@haikbenlian5466
@haikbenlian5466 2 жыл бұрын
How you found that the image size was decreased from 28 to 14?
@mojojojo890
@mojojojo890 Жыл бұрын
which one is the link that explains how you make the pytorch classes please?
@amzadhossain8118
@amzadhossain8118 3 жыл бұрын
Can u make a video on DNCNN
@marinacarnemolla5515
@marinacarnemolla5515 3 жыл бұрын
hi, I have a question: if we pass the image as input of the model, it will put the weights to zero and then the output will be exactly the same of the input image. So, why the image is given as input of the model? It doesn't make sense to me. Could yu explain this to me?
@avivalviannur5610
@avivalviannur5610 Жыл бұрын
I tried to rerun your code in the part of Autoencoder CNN, but then I got Loss = nan in each epoch. Do you know what is wrong?
@lankanathaekanayake7680
@lankanathaekanayake7680 2 жыл бұрын
is it possible to use sentences as input data?
@김중국-n3n
@김중국-n3n 3 жыл бұрын
thank you!
@patloeber
@patloeber 3 жыл бұрын
You're welcome!
@marytajz1814
@marytajz1814 3 жыл бұрын
your tutorials are amazing! Thank you so much... Could you please make a video for nn.embedding as well?
@patloeber
@patloeber 3 жыл бұрын
I'll have a look at it
@Saens406
@Saens406 2 жыл бұрын
why there is no require_grad there?
@736939
@736939 3 жыл бұрын
Can you please show how to work with variational autoencoders and applications such as Image segmentation.
@patloeber
@patloeber 3 жыл бұрын
will look into this!
@736939
@736939 3 жыл бұрын
@@patloeber Thank you. Because for me it's hard to program it.
@roshinroy5129
@roshinroy5129 Жыл бұрын
Am I the only one encountering nan values during training this ?
@khushpatelmd
@khushpatelmd 3 жыл бұрын
If you normalize the input image which is also the label, the values will be between -1 to +1 but your output since passed through sigmoid will be between 0 and 1. How will you decrease loss for pixels that are between -1 to 0 as your predictions will never be less than 0?
@anonim5052
@anonim5052 5 ай бұрын
you need to change sigmoid function at the end to tanh, to output will also be betweet -1 to 1
@hadisizadiyekta125
@hadisizadiyekta125 3 жыл бұрын
you used recons and img as input for loss function, however if we want to train my model and test it we should use "recon" and "labels" as an input for loss function. but the labels are 3D, how we can do that?
@121horaa
@121horaa 2 ай бұрын
Since, AutoEncoder is an unsupervised technique, so, recons and img are used as input to loss function. But, in semi-supervised or supervised methods, yo got labels, so we use them against the predicted values in loss function.
@teetanrobotics5363
@teetanrobotics5363 3 жыл бұрын
youre the best
@patloeber
@patloeber 3 жыл бұрын
thanks!
@teetanrobotics5363
@teetanrobotics5363 3 жыл бұрын
Could you please make GANs, VAE , transformers and BERT in pytorch
@vallisham1756
@vallisham1756 3 жыл бұрын
module 'torch.nn' has no attribute 'ReLu' Is anyone else getting the same error
@theupsider
@theupsider 3 жыл бұрын
its ReLU
@vallisham1756
@vallisham1756 3 жыл бұрын
@@theupsider Thanks a lot!
@AshishSingh-753
@AshishSingh-753 3 жыл бұрын
Next video is on GAN
@anirudhjoshi1607
@anirudhjoshi1607 2 жыл бұрын
dude my CNN autoencoder is doing worse than the linear autoencoder, lmao
@marc2911
@marc2911 Жыл бұрын
me too the ouputs show strange padding artefacts as well
@ryanhoward5999
@ryanhoward5999 2 жыл бұрын
"Jew-Pie-Tar notebook"
@pleasedontsubscribeme4397
@pleasedontsubscribeme4397 3 жыл бұрын
Great work!
Diffusion models from scratch in PyTorch
30:54
DeepFindr
Рет қаралды 251 М.
Autoencoders Explained Easily
27:59
Valerio Velardo - The Sound of AI
Рет қаралды 55 М.
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 5 МЛН
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 59 МЛН
180 - LSTM Autoencoder for anomaly detection
26:53
DigitalSreeni
Рет қаралды 90 М.
PyScript is officially here!🚀 Build web apps with Python & HTML
17:10
Simple Explanation of AutoEncoders
10:31
WelcomeAIOverlords
Рет қаралды 106 М.
Variational Autoencoder from scratch in PyTorch
39:34
Aladdin Persson
Рет қаралды 31 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 87 М.
Has Generative AI Already Peaked? - Computerphile
12:48
Computerphile
Рет қаралды 997 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 312 М.
The Value of Source Code
17:46
Philomatics
Рет қаралды 54 М.
Watching Neural Networks Learn
25:28
Emergent Garden
Рет қаралды 1,3 МЛН