Building a Neural Network with PyTorch in 15 Minutes | Coding Challenge

  Рет қаралды 177,002

Nicholas Renotte

Nicholas Renotte

Күн бұрын

Пікірлер: 177
@mesembria95
@mesembria95 2 жыл бұрын
Nick, we appreciate your work so much. The way you offer your knowledge so graciously, you're helping so many people who are newbies in the field.
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Knowledge is one of the few things you can give away and not lose, so why not share?! Thanks so much for checking it out @NeonCone!
@andyweb7779
@andyweb7779 Жыл бұрын
The amount of calculating a Terminator has to do just to work out if someones boots, clothes and motorcycle will do him is wild lol.
@FleiX664
@FleiX664 9 ай бұрын
Imagine Skynet.
@baguette184
@baguette184 9 ай бұрын
youre literally the best, i genuinely appreciate all the work youve put out for us. you have no idea how much help your channel has given me, without you i wouldve been completely lost in everything, thank you so much, i love you 😭♥
@sadra2637
@sadra2637 2 жыл бұрын
Good job man. I feel more and more in love with ML and DL as I watch your videos. Keep it up. 👊
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
YESSS, love that you're getting into it!
@mansoorbaig9232
@mansoorbaig9232 Жыл бұрын
Great explanation of all that is need in 15 min. Keep up the good work, your tutorials are a great help to DS community.
@petegrapentien4147
@petegrapentien4147 9 ай бұрын
This is the most fun I've ever had watching a coding video
@thealmighty9
@thealmighty9 2 жыл бұрын
Wow this was so good! I can't believe you still take time to explain things throughout the challenge lol. I am loving this series, super fun :D
@jinparksoul
@jinparksoul Жыл бұрын
"I can't believe you still take time to explain things throughout the challenge". I can't literally can't believe it either. Drink a shot every time he typed a line with no explanation and you'll be dead half way through the video. There is no freaking way a beginner understands wtf just happened by the end.
@thealmighty9
@thealmighty9 Жыл бұрын
@@jinparksoul This video isn't a tutorial for beginners though, it's a challenge he made for himself. If you want a tutorial look through his countless videos where he explains every little thing that even you can understand.
@jinparksoul
@jinparksoul Жыл бұрын
@@thealmighty9 Nonetheless its still true that most of the lines are written without any explanation regardless of who it is targeted towards in contradiction to what your comment "you still take time to explain things" implies. Although not really done here taking time to explain everything is typically something you would not need to do when you target experienced AI researchers and pytorch devs.
@thealmighty9
@thealmighty9 Жыл бұрын
@@jinparksoul So there is only explain everything or nothing? Only beginners and experienced professionals? "Take time to explain things" is not saying "takes time to explain every little thing" I'm not sure what you're trying to get at here, I don't know if you're upset that he doesn't explain enough or upset that he explained anything at all.
@erfanelmtalab1615
@erfanelmtalab1615 2 жыл бұрын
nick you are my hero for real , thank you for your tutorials man !
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Ayyyy, thanks so much @Erfan!
@primeq
@primeq 7 ай бұрын
great job Nick. It's impossible to overstate how powerful speed, clarity are when it comes to learning/teaching. 🌟
@qybl
@qybl 3 ай бұрын
So entertaining, yet so educational. this format is awesome! Thank you Nicholas
@gustavojuantorena
@gustavojuantorena 2 жыл бұрын
This is awesome Nick! I'm amazed by the way you can also explain while coding really fast 😂
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
I have no idea how I pulled this off 😂
@gabrielj.9028
@gabrielj.9028 2 жыл бұрын
Great job! Your videos have really helped me with project ideas and application examples. Looking forward to seeing more!
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
YESSS, go getem @Gabriel!! Plenty more to come.
@nicky6917
@nicky6917 Жыл бұрын
This is the longest 15 min ever in my life
@AsherNoor777
@AsherNoor777 Жыл бұрын
Yo! that is EPIC! Super intense! and SUPER helpful! thank you so much for sharing, this is giving me hope for my ML project for sure! And yes, I TOTALLY take this as a Win. Amazing job!
@vincentmarkiet
@vincentmarkiet 2 жыл бұрын
Awesome stuff. Keep at it mate.
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Cheers Vincent!!
@TheCopernicus1
@TheCopernicus1 2 жыл бұрын
Awesome content as always mate! well done :)😀
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Cheers @Bass Azayda!!
@rverm1000
@rverm1000 Жыл бұрын
Glad you got it deploy. No one seems to get that far
@Markom3D
@Markom3D Жыл бұрын
Hey, i might have to take this format for my live streams…. Subscribed good sir
@papakamirneron2514
@papakamirneron2514 9 ай бұрын
Finally, a tutorial for just the useful stuff
@gadmuhirwa5226
@gadmuhirwa5226 Жыл бұрын
oohh my God you made proud and happy you build my confidence brother @ Nicholas I can't stop laugh for your celebration
@dasamlan9874
@dasamlan9874 2 жыл бұрын
Great vid. I started ML a year ago and I could understand approx 70-75% of the vid.... can u do a vid on audio processing or provide some resources for the same. Audio processing, noise classification and similar stuffs. And once again a BIG thank u for these vids.. really helpful!!
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Heya @Das, check this out: kzbin.info/www/bejne/kH2sgZ6joql9d8U
@dasamlan9874
@dasamlan9874 Жыл бұрын
@@NicholasRenotte once again.. Thanx a lot. 😁
@omarkhamismohamed9563
@omarkhamismohamed9563 2 жыл бұрын
Super underrated .. Amazing explanation during challenge !!!!
@ganesh-uc2ft
@ganesh-uc2ft 8 ай бұрын
This was fun! Thank You for the amazing tutorial.
@nerualbrain
@nerualbrain Жыл бұрын
Love this video It actually helped me start using pytorch
@anshverma2820
@anshverma2820 2 жыл бұрын
Thanks Nick! That was an amazing video.
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Thanks a mil for checking it out @ansh!
@MatthewOrbuch
@MatthewOrbuch Жыл бұрын
If this were not a rushed challenge but a proper tutorial explained a bit more calmly, it would be pure gold
@sanketdongre369
@sanketdongre369 Жыл бұрын
Put the code in chatGPT and ask for explanation. 😇
@choz8358
@choz8358 10 ай бұрын
Thanks for the content, as a newb I learned a lot here 👍
@bguerrae
@bguerrae Жыл бұрын
That was incredible! thank you so much for making it look so easy to implement. you are great!
@sergioquijano7721
@sergioquijano7721 2 жыл бұрын
Shortcut of the video? Toggle/Hide command line inside VSCode: ctrl + J (command + J in mac) Hope you remember my shortcuts
@lakshman587
@lakshman587 2 жыл бұрын
So you won!! Congratulations!!!!
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
I have never written 50+ lines of code so fast in my life!! Thanks a mil @Lakshman. Was looking close towards the end there!!
@lakshman587
@lakshman587 2 жыл бұрын
@@NicholasRenotte Noice! You did it!!
@philtoa334
@philtoa334 2 жыл бұрын
Great ! but... This time I especially learned that I could have bad thought for you . For a gift card ... 🤣
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
LOL I think the code that series isn’t ending anytime soon. might just need to start making some ridiculous challenges.
@saleemmuhammed5133
@saleemmuhammed5133 Жыл бұрын
This is what I exactly wanted.. Awesome stuff!!
@armaaanziyad2772
@armaaanziyad2772 2 жыл бұрын
Nick amazing work you really are a pro!
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
You're too kind, thanks @Armaaan!
@gplgomes
@gplgomes 2 жыл бұрын
Nocholas, you are the guy.
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Cheers @Geraldo!
@justinbenavidez1985
@justinbenavidez1985 Жыл бұрын
great video and amazing coding!!
@irugal8964
@irugal8964 2 жыл бұрын
😎 We always appreciate your content Nich
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Thanks a million @Irugal, means a ton!!
@ChrisOndrovic
@ChrisOndrovic 8 ай бұрын
Man awesome video, do you have or could you do one doesn't have to be a timed coding challenge but instead if you want to create your own dataset as opposed to using an existing one
@einsteinsboi
@einsteinsboi 2 жыл бұрын
Legend! That was epic!
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Thanks a mil @maryml
@MichaelMacedoDiniz
@MichaelMacedoDiniz Жыл бұрын
Very nice content, congratulations !!!!
@billal2731
@billal2731 8 ай бұрын
I can finally ad Machine Learning to my resume
@sitrakaforler8696
@sitrakaforler8696 2 жыл бұрын
Dam dude !!!!!!!!!!!!!!!!!!!!!!!!! You are wild ! Bravo
@Ragul_SL
@Ragul_SL 9 ай бұрын
why are we giving (1,32,(3,3)) in conv2d and then (32,64,(3,3)) , how is it decided? can someone explain
@robotbugs
@robotbugs 27 күн бұрын
When I did it with the same code, the loss went down and then back up again - why is that?
@OvettaSampson-vz4en
@OvettaSampson-vz4en 8 ай бұрын
This was fun to watch.
@NanoCreator
@NanoCreator 2 жыл бұрын
This is a good teaching!!! you are great!!!
@murataavcu
@murataavcu 2 жыл бұрын
That was truly amazing
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Thank you so much @Murat!!
@harshraithatha
@harshraithatha 2 жыл бұрын
Hey Nick, I have sensitive data in my dataset. I need it to train my model. But also want to mask it. What to do?
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
I deal with this a lot at work, check with your privacy policies but the model itself won't contain the raw data just what the NN has learned.
@julianchambrier2401
@julianchambrier2401 2 жыл бұрын
Good job and Congratulations ! Is it possible to make a video on lip sync with Tensorflow from a video file and a text/audio file generating a deepfake? For example a video of you with speech of Martin Luther King (with your voice) ? I think it could interest a lot of people
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Oooooh, I'll dig into it!
@neilrenaud5962
@neilrenaud5962 11 ай бұрын
Job well done .Way to go
@fizipcfx
@fizipcfx 2 жыл бұрын
Do you plan to make another streams.
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
OFC, normally aim for two a week. This week was a bit of an exception.
@fizipcfx
@fizipcfx 2 жыл бұрын
@@NicholasRenotte i got you, thanks for the reply
@johnnovotny4286
@johnnovotny4286 4 ай бұрын
well done, appreciated
@mahsakhoshnoodi2972
@mahsakhoshnoodi2972 2 жыл бұрын
Nice challenge 🤩
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Thanks a mil @Masha!!
@toni3124
@toni3124 2 жыл бұрын
Love your vids! could you maybe make a video about a TTS system based on the LJ Speech Dataset?
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Will take a look!
@GX-uq1hm
@GX-uq1hm Жыл бұрын
Nicholas, what monitors do you use there for coding? your workplace looks fantastic !!
@epistemicompute
@epistemicompute Жыл бұрын
You have no pooling layers
@domillima
@domillima 5 ай бұрын
what rig do you have for your two curved monitors? :D
@HussainAyed-y3s
@HussainAyed-y3s Жыл бұрын
This dude is an O.G.
@adityashukla7849
@adityashukla7849 2 жыл бұрын
Phenomenal!
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Cheers @Aditya!
@dsc40sundar18
@dsc40sundar18 Жыл бұрын
preety amazing and big fan bro
@dactoanho6026
@dactoanho6026 7 ай бұрын
Thank you very much for your video. it's very helpful
@vinsmokearifka
@vinsmokearifka 8 ай бұрын
Haha very interesting show
@krale9970
@krale9970 2 ай бұрын
Csn you tell me on which learn platforms i can learn this clearly , because for a beginner I dont know what you write in general there . Where should I start to beginnt with to understand this ? Thank you for help in advance
@akandee
@akandee 2 жыл бұрын
Great! Nicholas, thanks for sharing. Please how would one handle labels for classification, is this method foolproof to using LabelImg? Thanks.
@wgb-10
@wgb-10 2 жыл бұрын
Good job Nick! Huge W. I was wondering as to why the loss was increasing after every 4 epochs, is it because a new batch is fed in to the model?
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Heya Wesley!! First one finally!! Probably getting to the point of overfitting but we're only printing out after every epoch not per batch. Loss bumps up in epoch 4 but still drops in epoch 8 (take a look at the power e-6 as opposed to e-5)
@wgb-10
@wgb-10 2 жыл бұрын
@@NicholasRenotte Oh right. I completely missed the e-6 😂
@JasR-b2r
@JasR-b2r 3 ай бұрын
I am brand new in learning python code and neural nets etc and I feel the exact same way as you did @ 9:45 LOL
@coolsai
@coolsai Жыл бұрын
God level
@vladrask
@vladrask Жыл бұрын
Hi What VS Code theme are you using?
@dsc40sundar18
@dsc40sundar18 Жыл бұрын
love from india and i am so happy
@ravenbao3334
@ravenbao3334 5 ай бұрын
i added another pic of a number 5, but I get this error - Given groups=1, weight of size [32, 1, 3, 3], expected input[1, 4, 28, 28] to have 1 channels, but got 4 channels instead; how can I make it work
@Spacesparx-h7q
@Spacesparx-h7q 6 ай бұрын
Can you put a video about creating a AI for beginners including all mechane learning code like computer vision and more in one video
@ajaykumar-rh2gz
@ajaykumar-rh2gz 2 жыл бұрын
Amazing bro love the way teach
@chiragparmar3678
@chiragparmar3678 Жыл бұрын
one question i have is why did u not defined your yhat as clf.predict(x) instead you took only clf(x)
@jamesderiter4370
@jamesderiter4370 Жыл бұрын
This dude is an irl character from bigmouth
@adamblack2255
@adamblack2255 2 жыл бұрын
IS it just me or is pytorch incredibly slow? Or am I misunderstanding the difference between this and a simple conv model with tensorflow/keras?
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Hmmm, might need to do a comparison, tbh I've always used tf and never had performance issues. I didn't check how many samples were in the MNIST dataset for this though.
@kamalakannank2741
@kamalakannank2741 Жыл бұрын
Sir, Which document you read to write this code?
@dadanny661
@dadanny661 Жыл бұрын
Instead of printing the epoch loss, didn't you print the loss of the last batch of the epoch ?
@cagataydemirbas7259
@cagataydemirbas7259 2 жыл бұрын
Hi, Im confused about cross validation. I looked videos they just use cross_val_score. I want to train data using cross validation and predict test daha how can I do it with cross validation. I want train cross validation and apply other datas how can i do it
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Take a look at GridSearchCV in sklearn
@cagataydemirbas7259
@cagataydemirbas7259 2 жыл бұрын
@@NicholasRenotte thank you. gridsearh tests some parameters after tested when we predict it uses best parameters ? or should we trained again by best parameters
@nikaize
@nikaize 7 ай бұрын
Easy !!!! Good job !!!
@sebastianrothe
@sebastianrothe 2 жыл бұрын
awesome & fun , at least if you don't try to follow typing :) thx alot
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
LOL, yeah it was a little fater than my usual pace
@sebastianrothe
@sebastianrothe 2 жыл бұрын
@@NicholasRenotte but it was Fun trying :) Maybe you can do a series like this From tiny world problem to live solution? That would be cool to See the process and thoughts
@MrSanselvan
@MrSanselvan 2 жыл бұрын
Nice. The loss is increasing after the 3rd epoch. Is it good sign or bad ?
@danielpaul8734
@danielpaul8734 Жыл бұрын
It is not. Notice that the loss will be written in scientific notation after the 3rd epoch
@georgebassemfouad
@georgebassemfouad 2 жыл бұрын
Hi I have a question.. what is the difference between tensorflow and pytorch
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Similar, just different implementations TF: from Google, PT: from Facebook
@Michal2SAB
@Michal2SAB Жыл бұрын
Why sometimes in accuracy, loss or whatever, one of these.. weird letters are present? Like a big number 0.12202020202-e545. Is it a problem? I found that to be confusing when predicting cause then the model inaccuratly predicts for some reason. Or perhaps it's not a problem and I just can't do simply "if accuracy > 0.5" in that case and THAT's the issue
@Connecttechaarushenglish-ox111
@Connecttechaarushenglish-ox111 8 ай бұрын
No it is not a problem. Sometimes, when accuracy or loss or both are very small or big then it uses some words like 341e78
@Nmind-Nbody
@Nmind-Nbody Жыл бұрын
Awesome Broo!!!😱
@fairyroot1653
@fairyroot1653 2 жыл бұрын
Can this model predict a sequence of numbers in captcha based images with digits and/or letters?
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Would need to be tweaked to do that!
@fairyroot1653
@fairyroot1653 2 жыл бұрын
@@NicholasRenotte can you demonstrate how?
@gblazerify
@gblazerify 7 ай бұрын
Amazing!
@SomebodythatIusetoknow123
@SomebodythatIusetoknow123 8 ай бұрын
well played
@chiscoduran9517
@chiscoduran9517 2 жыл бұрын
Hi, there is something that always confused me when working with conv networks, when you set the input layers in the nn.Linear(), you set it as 64*(28-6)*(28-6), why is that? how to know how many inputs and outputs you have to have when combining conv nodes with linear nodes, thanks great video :)
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Look under the shape section here: pytorch.org/docs/stable/generated/torch.nn.Conv2d.html , the formula for calculating the height and width of the output are shown there (see Hout and Wout)
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
If I adjusted kernel size, padding or stride then the output shape would’ve changed accordingly @Chisco!
@nikitaandriievskyi3448
@nikitaandriievskyi3448 2 жыл бұрын
If you have an image of let’s say 28*28 shape, and you pass it through a 3by3 filter with a stride of 1, and 0 padding, then ur output Shape would be: 28-3 + 1 by 28-3+1. The general formula for shapes after passing through a conv layer is ((input_shape +2*padding size - filter size) / stride) + 1 and then floor the results, so if it’s 3.5 you should round to the bottom, and you will have 3
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
What Nikita said is bang on!
@alexzan1858
@alexzan1858 2 жыл бұрын
does pytorch have better/faster training compared to tensorflow?
@fizipcfx
@fizipcfx 2 жыл бұрын
Awesomeee
@mishmohd
@mishmohd Жыл бұрын
11:17 don’t u need to put it in eval mode when predicting and train mode when training?
@shishya
@shishya Жыл бұрын
And you didn't skip commenting 😅
@arjunbali2079
@arjunbali2079 2 жыл бұрын
Hi Nicholas I started following your channel after your series on siamese network. Like this can we build multiple language OCR for example in a sentence there is english, hindi and german together written the classifier translate them all together and give us the result in the required language
@hlslaughter3
@hlslaughter3 8 ай бұрын
You've got 5 minutes to write hello world. Me: .... (◉▂◉ ) ..... (⊙.⊙) .... 5 mins later .... .... ¯\_(ツ)_/¯
@andyweb7779
@andyweb7779 Жыл бұрын
Is the tensor mathematics involved in neural networks the same as the tensor mathematics invented by Albert Einstein for his work on general relativity?
@dubble_g
@dubble_g Жыл бұрын
i have way more detailed images that are 128x128 and my NN is really bad at predicting, any tips what i should try to adjust besides the learnign rate?
@Michallote
@Michallote 8 ай бұрын
Use yolo
@fahnub
@fahnub 10 ай бұрын
You da GOAT
@rodrigovbaautomation8703
@rodrigovbaautomation8703 5 ай бұрын
Yessssssss!!!!!
@SimpliSave-h2o
@SimpliSave-h2o Жыл бұрын
Could this be used to bypass Robot image validation ?
@thiagosnelli138
@thiagosnelli138 Жыл бұрын
Hi mate, I'm using the CPU, what should I type on line 57?
@thiagosnelli138
@thiagosnelli138 Жыл бұрын
Well, answering my own concern, for the CPU guys: line 58 change for: clf.load_state_dict(torch.load(f, map_location='cpu'))
@undokat
@undokat Жыл бұрын
6:08 i don't know what you are doing what are those?
@fulltimefrontend
@fulltimefrontend Жыл бұрын
Tell how to build my machine ! I want to setup just like you have.
Build Your First Pytorch Model In Minutes! [Tutorial + Code]
31:32
Building a Machine Learning API in 15 Minutes | Coding Challenge
20:04
Nicholas Renotte
Рет қаралды 132 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
PyTorch vs TensorFlow in 2023 FULL OVERVIEW
13:29
Team Up With AI
Рет қаралды 39 М.
6 Years of Studying Machine Learning in 26 Minutes
26:05
Boris Meinardus
Рет қаралды 96 М.
Building the Gradient Descent Algorithm in 15 Minutes | Coding Challenge
22:29
PyTorch vs TensorFlow | Ishan Misra and Lex Fridman
3:47
Lex Clips
Рет қаралды 127 М.
What is PyTorch? (Machine/Deep Learning)
11:57
IBM Technology
Рет қаралды 34 М.
I Built a Neural Network from Scratch
9:15
Green Code
Рет қаралды 426 М.
Watching Neural Networks Learn
25:28
Emergent Garden
Рет қаралды 1,3 МЛН
PyTorch Crash Course - Getting Started with Deep Learning
49:55
AssemblyAI
Рет қаралды 107 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН