Lesson 2: Practical Deep Learning for Coders 2022

  Рет қаралды 149,068

Jeremy Howard

Jeremy Howard

Күн бұрын

Q&A and all resources for this lesson available here: forums.fast.ai/t/lesson-2-off...
00:00 - Introduction
00:55 - Reminder to use the fastai book as a companion to the course
02:06 - aiquizzes.com for quizzes on the book
02:36 - Reminder to use fastai forums for links, notebooks, questions, etc.
03:42 - How to efficiently read the forum with summarizations
04:13 - Showing what students have made since last week
06:45 - Putting models into production
08:10 - Jupyter Notebook extensions
09:49 - Gathering images with the Bing/DuckDuckGo
11:10 - How to find information & source code on Python/fastai functions
12:45 - Cleaning the data that we gathered by training a model
13:37 - Explaining various resizing methods
14:50 - RandomResizedCrop explanation
15:50 - Data augmentation
16:57 - Question: Does fastai's data augmentation copy the image multiple times?
18:30 - Training a model so you can clean your data
19:00 - Confusion matrix explanation
20:33 - plot_top_losses explanation
22:10 - ImageClassifierCleaner demonstration
25:28 - CPU RAM vs GPU RAM (VRAM)
27:18 - Putting your model into production
30:20 - Git & Github desktop
31:30 - For Windows users
37:00 - Deploying your deep learning model
37:38 - Dog/cat classifier on Kaggle
38:55 - Exporting your model with learn.export
39:40 - Downloading your model on Kaggle
41:30 - How to take a model you trained to make predictions
43:30 - learn.predict and timing
44:22 - Shaping the data to deploy to Gradio
45:47 - Creating a Gradio interface
48:25 - Creating a Python script from your notebook with #|export
50:47 - Hugging Face deployed model
52:12 - How many epochs do you train for?
53:16 - How to export and download your model in Google Colab
54:25 - Getting Python, Jupyter notebooks, and fastai running on your local machine
1:00:50 - Comparing deployment platforms: Hugging Face, Gradio, Streamlit
1:02:13 - Hugging Face API
1:05:00 - Jeremy's deployed website example - tinypets
1:08:23 - Get to know your pet example by aabdalla
1:09:44 - Source code explanation
1:11:08 - Github Pages
Thanks to bencoman, mike.moloch, amr.malik, gagan, fmussari, kurianbenoy, and heylara on forums.fast.ai for creating the transcript.
Thanks to Raymond-Wu on forums.fast.ai for creating the timestamps.

Пікірлер: 90
@Karen-ls7hv
@Karen-ls7hv Жыл бұрын
thank you for making AI education free and accessible 😊
@howardjeremyp
@howardjeremyp Жыл бұрын
It's my pleasure
@TomMcKeesick
@TomMcKeesick Жыл бұрын
❤ This course will have a ripple effect for an entire generation of programming
@KiLVaiDeN
@KiLVaiDeN Жыл бұрын
This is very neat content, and your way of explaining those concepts is calm and posed, very enjoyable to watch ! Thank you.
@cojocarucosmin202
@cojocarucosmin202 Жыл бұрын
Respect for giving out high quality information, you are the real deal and so few people actually know...
@saadorj
@saadorj Жыл бұрын
Thank you, Jeremy, and everyone involved in creating this great course. It only gets better with every new iteration!
@strikingpotato3572
@strikingpotato3572 8 ай бұрын
Just like a Neural Network no? :)
@dmoneyballa
@dmoneyballa Жыл бұрын
Thank you so much for adding the commands for wsl to add the drivers on ubuntu. this is the most time consuming part for me when I setup a new computer. I really appreciate it.
@AiEdgar
@AiEdgar Жыл бұрын
No fillers so much knowledge I wish all my teachers were this good.
@chuhaoliu5050
@chuhaoliu5050 11 ай бұрын
It's way more fun to learn by building something people can actually use!! Thanks a ton!
@sayan7s
@sayan7s Жыл бұрын
Jeremy thank you so much for all the effort. It means a lot ! Really appreciate
@djstr0b3
@djstr0b3 5 ай бұрын
Thank you for the amazing videos Prof. Howard!
@palahnuk1
@palahnuk1 9 ай бұрын
Jeremy ... you are the real deal ... thanks for giving your personal time and energy to open the world of ML to mere mortals like us older engineers ... you are a real world blessing!
@miladrahimi3283
@miladrahimi3283 Жыл бұрын
This tutorials is really helpful, thanks so much. you are boosting my knowledge.
@ashish-blessings
@ashish-blessings Жыл бұрын
Thank you for the amazing course.
@gregfaruch7886
@gregfaruch7886 Жыл бұрын
Really cool ! Thank you to share with us.
@ChrisLonsberry
@ChrisLonsberry Жыл бұрын
OMG, I'm so excited to see new updates to this course! EDIT: Is there somewhere that I can read about what has changed?
@vikramsandu6054
@vikramsandu6054 Жыл бұрын
Loved every bit of it. Thanks, jph00. ;)
@hiankun
@hiankun Жыл бұрын
"And when I say one day, more specifically... today!" XD Today is a good day. 😀
@elvryn_
@elvryn_ 9 ай бұрын
So fun hearing anecdotes of classifying images of a dog cat with your daughter
@slf188
@slf188 Жыл бұрын
Great lecture! Jeremy is amazing at explaining such cryptic concepts
@neild7457
@neild7457 6 ай бұрын
Thank you very much for this course :)
@gblazerify
@gblazerify 6 ай бұрын
Great educational video!
@user-xp8qn6jw1j
@user-xp8qn6jw1j 7 ай бұрын
I love your lecture! 😄
@jasonholtkamp8462
@jasonholtkamp8462 Жыл бұрын
You know what's hilarious is that I actually read the book chapter before watching the lesson and I had the hardest time finding my Azure Bing API Key after I made my account and whatnot... It literally took me longer to just do that step than the entire rest of the lesson lol. And then Jeremy just goes yeah screw that I'm going to use duckduckgo instead haha.
@mistercakes
@mistercakes 7 ай бұрын
thank you for the great content. do you recommend jupyter notebook over jupyter lab? (any reason, is nbdev supported in jupyter lab?) also you mention number of epochs recommended. it could be useful just to give a number on how many epochs were needed to do the original training on the model that we are fine tuning against to give some perspective.
@rahmanoff
@rahmanoff 4 ай бұрын
Thanks Jeremy! p.s. if you try to go step by step and got error "module 'gradio' has no attribute 'inputs'", try gradio==3.48. It works well for me.
@mamotivated
@mamotivated Жыл бұрын
@jeremy in the randomization/augmentation process in real-time in memory, does a single image and its variants all get included in a single batch? If they do, how does this affect the quality of the weight updates vs spreading some of the augemented images to other batches
@estrellaum9480
@estrellaum9480 Жыл бұрын
I need triple the time of the video to understand it, but I am getting there, thanks! By the way, the dog-cat thing apparently is a puppy...
@juanmontero883
@juanmontero883 Жыл бұрын
Thank you so much!
@user-cs2ro6sl9h
@user-cs2ro6sl9h Жыл бұрын
Yes it can - don't despair!
@DeepakKumarDataScience
@DeepakKumarDataScience Жыл бұрын
What is the repo used for this set of jupyter notebooks? The Fastbook directory seems to have the textbook version that uses Azure SDK keys whereas Jeremy refers to the DDG alternative. I am not able to find the right folder under the fast ai repos.
@JoelOrellana
@JoelOrellana 3 ай бұрын
so amazing classss
@taitonium6262
@taitonium6262 6 ай бұрын
this is bery good thank you ;)
@aworden
@aworden Жыл бұрын
Where can we get the locally run notebook that you used to create the python script for the gradio app? Could this be run in Kaggle instead of locally and exported / downloaded? It makes it confusing that you're jumping from Kaggle to colab to local notebooks. Is that necessary?
@bhanutadepalli
@bhanutadepalli Жыл бұрын
56:57 curl doesnt have --no-progress-meter option. If you are setting up on mac remove that option from the command
@cullenharris1837
@cullenharris1837 Жыл бұрын
Where can we find the notebook at 41:32 for Dogs v Cats on your local?
@hawperify
@hawperify Жыл бұрын
Also wondering this, having trouble following along that this section...
@paulmest
@paulmest Жыл бұрын
It was covered in Lesson 1. Check out the Resources section here: course.fast.ai/Lessons/lesson1.html
@bampy81
@bampy81 Жыл бұрын
Got the same problem. It's the app.ipynb file that I can't find. Did you manage to find it?
@nostalgiccringeallhailchel3881
@nostalgiccringeallhailchel3881 Жыл бұрын
@@paulmest where is it in the resources section?
@nostalgiccringeallhailchel3881
@nostalgiccringeallhailchel3881 Жыл бұрын
@@bampy81 did you find it? if yes please lemme know
@mansamusa559
@mansamusa559 Жыл бұрын
Love the course !! But I really recommend streamlit instead of gradio.. :D
@AnibalCarpio
@AnibalCarpio Жыл бұрын
Where can I look for the notebook to lesson 2 using ddg method?, cause on the fastai book website still show the version using key and Microsoft Azure
@jordankuzmanovik5297
@jordankuzmanovik5297 Жыл бұрын
Hi jeremy, as always great course. But what about practical deep learning from the foundation? I am waiting 2 years for those. Thanks
@enigmeta
@enigmeta Жыл бұрын
It seems that nbdev 2.0 works very differently, because the export doesn't work anymore. Is there a good tutorial on how to use the new version?
@chuhaoliu5050
@chuhaoliu5050 11 ай бұрын
Update for 2023. In Gradio deployment notebook, `intf.launch(inline=False)` needs to change to `intf.launch(inline=False,share=True)` to have the public web link.
@mehnaazmohiuddin
@mehnaazmohiuddin 11 ай бұрын
In the step of cleaning the data . Are we moving the files in the folder ? Do we have to have to create the model again?
@jimshtepa5423
@jimshtepa5423 Жыл бұрын
what does calling 'train' method on dls object do? does it show the images that are used to train the model? what does 'valid' method do?
@marktomm1959
@marktomm1959 Ай бұрын
With gradio==4.28.3 the example code in the video won't work. error "module 'gradio' has no attribute 'inputs'" Fix: image = gr.Image(height=192, width = 192) label = gr.Label()
@oshanmodi
@oshanmodi Жыл бұрын
so cool
@wayneqwele8847
@wayneqwele8847 Жыл бұрын
yo this is an amazing.
@kophaihoang
@kophaihoang 4 ай бұрын
The weird dog at 47:20 is "Chó Dúi" and he is from Vietnam, it is unlucky that he just passed away last year :(
@datalifenyc
@datalifenyc Жыл бұрын
49:12 Looking at the source code for nbdev.export, there is no `notebook2script` function. The closest in functionality appears to be `nb_export(nbname, lib_path = None)`. nbdev version: 2.0.6. Did anyone run into the same issue?
@datalifenyc
@datalifenyc Жыл бұрын
This video is probably referencing v1 of nbdev. For v2, you can use: # Bash Terminal nbdev_export --path "app.ipynb" or # Jupyter Notebook from nbdev import nbdev_export nbdev_export("app.ipynb") A `nbdev` folder is created with the `app.py` file in it.
@dingding4898
@dingding4898 Жыл бұрын
anything to convert an existing project to nbdev?
@toromanow
@toromanow Жыл бұрын
It says fastpages is deprecated and one should use quattro instead. Thoughts?
@piecucci
@piecucci 4 ай бұрын
10:57 I was getting an error after running dls = bears.dataloaders(path) from the cells further fown in the notebook. I needed to change the quotations marks in the cell with bear_types for the variable path = Path("bears") (double quotation marks)... Took me some googling around to make it work!
@piecucci
@piecucci 4 ай бұрын
I've also needed deindent the for loop for the bear_types and remove the folders created before running the code again. if not path.exists(): path.mkdir() for o in bear_types: dest = (path/o) dest.mkdir(exist_ok=True) download_images(dest, urls=search_images_ddg(f'{o} bear photo'))
@frankkranktrangtmohammedny807
@frankkranktrangtmohammedny807 3 ай бұрын
​@@piecucci I had the exact same problem. Thanks for commenting this!🙏
@jonathangrant7788
@jonathangrant7788 Жыл бұрын
You mention that the learner needs all the same functions it had in training. Is this due to using pickle? Can you just use cloudpickle instead and not provide the training environment?
@djcardwell
@djcardwell Жыл бұрын
Is there a reason why you use windows? I've been working industry as a developer for 7 years now and have only seen one person use windows and they always had issues. Just curious if it's cuz microsoft now ships with linux kernel or if there's any benefits for deep learning.
@howardjeremyp
@howardjeremyp Жыл бұрын
I like being able to use a stylus directly on the screen. I use WSL (Linux) or SSH into a Linux server for nearly all my work though.
@nostalgiccringeallhailchel3881
@nostalgiccringeallhailchel3881 Жыл бұрын
btw that dog cat image is actually a puppy that looks like a cat
@bhanutadepalli
@bhanutadepalli Жыл бұрын
mamba install jupyter notebook is required nbdev alone doesnt install jupyter on Mac
@ericflynn5799
@ericflynn5799 2 ай бұрын
I'm running into an issue where the ImageClassifierCleaner is not working properly in a Kaggle notebook. Anyone else face a similar issue and know a solution?
@blenderpanzi
@blenderpanzi 7 ай бұрын
That dog-cat has an AI generated feel to me.
@priyanshutiwary9500
@priyanshutiwary9500 11 ай бұрын
how to study this course. does it only have 8 lectures ?
@howardjeremyp
@howardjeremyp 10 ай бұрын
No there's 25 lectures. Go to course.fast.ai/ .
@nathanmcnaughton4468
@nathanmcnaughton4468 Жыл бұрын
I created a hugging space faces page and created a new space called "minimal", selected apachie, radio, and public. Im on mac and copied the repo into the terminal. I then tried to do code . but it says "command not found: code" I am not sure what I did wrong.
@ladyblack679
@ladyblack679 Жыл бұрын
I had the same issue First make sure you have downloaded Visual Studio Code Open Visual Studio Code Type Cmd+Shift+P and input '> shell command' and click Shell Command: Install 'code' command in PATH command. Restart your terminal In the terminal type in “cd minimal” Then input “code . "
@nostalgiccringeallhailchel3881
@nostalgiccringeallhailchel3881 Жыл бұрын
uninstall and reinstall vscode. Sometimes the environment path get corrupted and the updates don't happen properly
@nigeljdean
@nigeljdean 10 ай бұрын
I had the same issue. It worked straight after I had restarted the windows 11 PC
@JoshGodwinArt
@JoshGodwinArt Жыл бұрын
The one thing that didn't seem super clear to me is why he is doing everything in a Linux environment in the first place. Why not just install python and all the libraries on regular windows without that extra step of having to go to linux first.
@NotaUserIam
@NotaUserIam 11 ай бұрын
Love the course but I do hate the way you code. I have spent way too much time figuring out which imports are giving me which function I’m using
@howardjeremyp
@howardjeremyp 10 ай бұрын
To find out what import provides a function, type the function name and hit shift-enter.
@shoelessone
@shoelessone 7 ай бұрын
First, thanks for the great lesson, I really appreciate it! Second, any Magento developers get excited when the Magento logo came up? kzbin.info/www/bejne/fGXXp4Bqi8dmd5I
@tarshsingh4198
@tarshsingh4198 10 ай бұрын
43:32
@daniilsmirnov3153
@daniilsmirnov3153 11 ай бұрын
13:32
@alecmorgan3541
@alecmorgan3541 Ай бұрын
You wouldn't download 600 images of bears!
4 ай бұрын
dog? pig? loaf of bread. SYSTEM ERROR
@khuyendominh4032
@khuyendominh4032 Жыл бұрын
it is a dog
@vorandrew
@vorandrew Жыл бұрын
Thank you Jeremy, but we are programmers... 80% of time you spent on showing stuff we already know... git, jupiter etc... can you make 30 minute course with core concepts of fastai framework. What models when used etc...
@jimshtepa5423
@jimshtepa5423 Жыл бұрын
has anyone managed to solve 'NotImplementedError: The operator 'aten::_linalg_solve_ex.result' is not currently implemented for the MPS device. ' issue on macos m series?
@moritzsur997
@moritzsur997 5 ай бұрын
no but I have the same problem. I just did it in Google Colab.
@05me39
@05me39 Жыл бұрын
6:57 Need to import widgets before using ImageClassifierCleaner from fastai.vision.widgets import *
@devanshkmishra
@devanshkmishra Жыл бұрын
thanks
Lesson 3: Practical Deep Learning for Coders 2022
1:30:25
Jeremy Howard
Рет қаралды 103 М.
Practical Deep Learning for Coders: Lesson 1
1:22:56
Jeremy Howard
Рет қаралды 325 М.
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 91 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 15 МЛН
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 54 МЛН
Lesson 4: Practical Deep Learning for Coders 2022
1:34:37
Jeremy Howard
Рет қаралды 85 М.
[1hr Talk] Intro to Large Language Models
59:48
Andrej Karpathy
Рет қаралды 1,9 МЛН
👩🏻‍💻 Why Macbook M1 Pro is the BEST laptop for Data Science
11:45
Thu Vu data analytics
Рет қаралды 75 М.
Build an AI app with FastAPI and Docker - Coding Tutorial with Tips
35:18
Lesson 5: Practical Deep Learning for Coders 2022
1:42:49
Jeremy Howard
Рет қаралды 64 М.
PyTorch at Tesla - Andrej Karpathy, Tesla
11:11
PyTorch
Рет қаралды 511 М.
The End of Finetuning - with Jeremy Howard of Fast.ai
1:24:48
Latent Space
Рет қаралды 18 М.
But what is a neural network? | Chapter 1, Deep learning
18:40
3Blue1Brown
Рет қаралды 16 МЛН
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 91 МЛН