PyTorch Tutorial 14 - Convolutional Neural Network (CNN)

PyTorch Tutorial 14 - Convolutional Neural Network (CNN)

Patrick Loeber

4 года назад

182,123 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Hassam Baig
Hassam Baig - 18.08.2023 01:08

You uploaded 3 years ago and im so glad you did, university didnt teach this much istg THANKS ALLOT !!!! KEEP UPLOADING MORE. and tell a toolkit other than cuda for intel UHD graphics

Ответить
Han Wang
Han Wang - 12.07.2023 15:07

Thank you so much! Everything is so clear. And even though English is not my mother tongue, I can catch up without caption. (*^_^*)

Ответить
Elise
Elise - 14.06.2023 15:59

May I ask why you don't just use nn.Sequential to define the model? It is much more straightforward and easier to read I think. Or perhaps this is a newer feature? Anyway, for anyone interested, I just replaced the class definition with:

model = nn.Sequential(
nn.Conv2d(3,6,5,stride=1),
nn.ReLU(),
nn.MaxPool2d(2,2),
nn.Conv2d(6,16,5,stride=1),
nn.ReLU(),
nn.MaxPool2d(2,2),
nn.Flatten(),
nn.Linear(16*5*5,120),
nn.ReLU(),
nn.Linear(120,84),
nn.ReLU(),
nn.Linear(84,10)
).to(device)

Ответить
Anthony Hakim
Anthony Hakim - 19.04.2023 03:45

I am confused, why doesn't max pooling change the input dimension of the next convolution layer?

Ответить
iEp526_01
iEp526_01 - 10.04.2023 13:59

Hey, just wanted to let you know how much these videos helped me. I started working to learn ML three years ago and now, as I'm about to graduate, have come to the point of independently building and training nets for my Undergrad Senior Project. I don't think I ever would have gotten off the ground if not for these and even now reference them when I'm starting with new types of nets or data prep. Thanks for all the time and effort you put into these.

Ответить
AOMO
AOMO - 27.03.2023 09:39

Hi, Thank you for great video;
Please have y made before an example on which you show how to load images from local directory + labels from extrac csv or pkl file ?
Thank you

Ответить
Diego Cassinera
Diego Cassinera - 21.02.2023 01:25

Great Video . One simple question, you explain very well how the hardcoded values came to be. Could the values for the inner layers (pool, conv2, fc1, fc2,...) be obtained programmatically from the previous layer ?

Ответить
Erfan Shayegani
Erfan Shayegani - 05.01.2023 05:54

You are the best considering the strength of explanation!

Ответить
조인환
조인환 - 12.12.2022 11:46

wow its very awesome thx :)

Ответить
Allhabakash G
Allhabakash G - 31.08.2022 12:26

brother please send me this code

Ответить
Asraf Patoary
Asraf Patoary - 07.07.2022 22:32

I am studying at FAU and watching your videos to crack the coding part of DL exam ✌

Ответить
anurag shrivastava
anurag shrivastava - 21.06.2022 08:23

please upload more advance pytorch videos and projects and keep doing great work

Ответить
Surya Vara Prasad Alla
Surya Vara Prasad Alla - 26.05.2022 23:29

keep going. Please continue to upload. Great Content and support.

Ответить
Nougat Schnitte
Nougat Schnitte - 13.04.2022 17:39

Writing my Bachelor thesis about this, you are a life saver :-)

Ответить
me
me - 12.04.2022 21:04

Hello. Is it the same a "train_loader" than a minibatch?

Ответить
Georgiana Orbeanu
Georgiana Orbeanu - 20.03.2022 20:30

Great video! Keep it up!

Ответить
Parth Kandwal
Parth Kandwal - 11.03.2022 14:33

Great work
Thank you very much

Ответить
Summer XIA
Summer XIA - 08.03.2022 02:13

The best CNN python video!!! Thank you so much!!!

Ответить
Wannaleave
Wannaleave - 28.01.2022 17:06

What is the difference between view and reshape? reshape was used in FFN video and view is used here. Thanks!

Ответить
Jonas Noll
Jonas Noll - 27.01.2022 13:35

Loved the video as always, thank you! Short question: I was wondering how you came (or have been comming) up with the simple CNN architecture(s), is this for example a common vanilla network or do you maybe have a paper at hand that you use. Would be interesting to know. Thanks ahead - big fan!

Ответить
Michael Muolokwu
Michael Muolokwu - 24.01.2022 14:03

I really love your videos

Ответить
Yannick Leroy
Yannick Leroy - 11.01.2022 22:05

Awesome video thank you very much!

Ответить
OmarAbubakr
OmarAbubakr - 07.01.2022 10:51

Hello thanks for that great video, but I have a question how can we choose the number of units in the hidden layers is it random or what please help and thanks

Ответить
Utku Kalkanlı
Utku Kalkanlı - 01.01.2022 10:52

On 14.03, what if we have multiple filters, i.e 4 filters with size of 3 x 3 ? Does the equation change ?

Ответить
Long Nguyen Hoang
Long Nguyen Hoang - 28.12.2021 12:39

your course is saving my life, EVERY SINGLE VIDEO is a gold material

Ответить
Tumultuous Gamer
Tumultuous Gamer - 10.12.2021 18:05

Could you please clarify why you flatten to columns instead of rows i.e. x.view(-1, 16 * 5 * 5) instead of x.view(16*5*5, -1). In my program, I noticed that there are errors like NaN happening when I flatten to rows (with a higher learning rate of 0.5), rather than columns. Seems like you have done this for some reason, could you please explain it?

Ответить
Chiro 13
Chiro 13 - 12.11.2021 00:58

hi, the Conv2d has the Relu activation?

Ответить
Saltanat Khalyk
Saltanat Khalyk - 09.11.2021 11:45

Thank you good man

Ответить
Aman Kushwaha
Aman Kushwaha - 09.11.2021 07:24

Thanks

Ответить
Igor Polishchuk
Igor Polishchuk - 17.10.2021 21:04

Hello! I always look at your work carefully and I want to thank you for what you do!
I have one question about the code. Please explain why you use exactly such parameters in: transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5)). Thank you!

Ответить
Paul Ntalo
Paul Ntalo - 24.09.2021 00:39

Awasome precise and insighful tutorials, indeed the best about PyTorch and CNN. Thank you

Ответить
David Wu
David Wu - 16.09.2021 07:05

you are a LIFESAVER

Ответить
Matthew Hart Jacobsen
Matthew Hart Jacobsen - 28.08.2021 01:24

You are truly talented and understand the material in such a way you can really teach it in simple terms and everything. Thank you for these videos, I am getting more and more confident with Pytorch because of you!

Ответить
Yashvander Bamel
Yashvander Bamel - 24.08.2021 16:10

There is one question though, do we need to keep track of the shapes after each convolution and/or pooling layer? So that we can enter the correct amount of input neurons in the first Linear layer. Isn't there a convenient method for this?

BTW Thanks for the awesome tutorial !!

Ответить
Sinem Özdemir
Sinem Özdemir - 20.08.2021 12:51

thank you, very good explanation.

Ответить
Kin
Kin - 08.08.2021 19:40

Thank you for the tutorial as well as the github. I need to mess around with things to get a solid grasp of them so I greatly appreciate this. :D

Ответить
SummerPiao
SummerPiao - 07.07.2021 10:23

Hi, I just want to thank you for your work. I think those videos are really helpful to me and we are very appreciative of those. :-D They are really useful and you have a clear explaining structure. Thank you a lot!

Ответить
Mr Fifty50
Mr Fifty50 - 28.06.2021 22:19

Very helpful, thank you!

Ответить
Sérgio Murilo
Sérgio Murilo - 24.06.2021 17:25

Dude...can't thank you enough....You saved my life hehe

Ответить
Chandler Timm
Chandler Timm - 16.06.2021 05:44

Why not use flatten layer?

Ответить
canernm
canernm - 06.06.2021 00:48

Hello! Thanks for the videos. Quick question: i've seen people use the methods "model.train()" and "model.eval()". Can you tell me why they are not necessary here? Thank you in advance!

Ответить
Rutvik Jaiswal
Rutvik Jaiswal - 29.05.2021 18:43

This video really want to goes in trading page sir your teaching style is awesome ! you are too cool thank your for this video . I fall in love with your teaching

Ответить
Ali Ikram
Ali Ikram - 25.05.2021 09:31

what if i want to do this but with a data which is not one of the torchvision datasets how would I load it then

Ответить
Tobi
Tobi - 21.05.2021 10:53

Why do you choose 6 and 16 for ouput size in conv layer? Is this just trying out what works the best? I read when the image has more features the outputsize should be greater. Is this correct? Would be size if you do some more content about cnn or gan

Ответить
valarmorghulisx
valarmorghulisx - 01.05.2021 17:39

hi! Thank you so much for this awesome tutorials. we calculate the n_total_steps = len(train_loader). why is the train loader length is 12500? where did we define it?

Ответить
Ferenc Feher
Ferenc Feher - 29.04.2021 22:23

This equation saved me. I am literally in a masters program and I was struggling with getting the right number of dimensions. Not anymore thanks to you!!

Ответить
Natesh Tyagi
Natesh Tyagi - 16.04.2021 02:15

Excellent work but I want to know will this model work on a dataset that has classes that aren't mutually exclusive? For ex: Street View House Number Dataset (SVHN).

Ответить
AIDAN KENNEDY
AIDAN KENNEDY - 12.04.2021 09:28

This, as with all videos on this channel, needs more views. Every time I need to learn something on ML, this channel has the best and most enjoyable videos.

Ответить