AI_DL_Assignment / 3. Installation Guide /3. Setting up your Deep Learning Virtual Machine (Download Code, VM & Slides here!).srt
| 1 | |
| 00:00:00,550 --> 00:00:00,880 | |
| All right. | |
| 2 | |
| 00:00:00,880 --> 00:00:05,500 | |
| So welcome to chapter tree where we set up a planning development machine. | |
| 3 | |
| 00:00:05,500 --> 00:00:10,160 | |
| So now that you've gone through the intro you're now ready to get started setting up your machine. | |
| 4 | |
| 00:00:10,240 --> 00:00:11,730 | |
| So let's get to it. | |
| 5 | |
| 00:00:11,740 --> 00:00:17,380 | |
| So now the first step in setting up a deepening virtual machine is you need to download Virtual Box | |
| 6 | |
| 00:00:17,440 --> 00:00:24,100 | |
| Virtual Box is a software that allows us to actually start an entirely new operating system whether | |
| 7 | |
| 00:00:24,130 --> 00:00:30,460 | |
| it be Linux Windows or Mac OS although it's not fully supported for Mac OS but you can actually run | |
| 8 | |
| 00:00:30,490 --> 00:00:33,500 | |
| an entire new operating system with in a virtual box. | |
| 9 | |
| 00:00:33,510 --> 00:00:34,170 | |
| It's super cool. | |
| 10 | |
| 00:00:34,160 --> 00:00:35,560 | |
| It's called ritualize. | |
| 11 | |
| 00:00:35,800 --> 00:00:43,960 | |
| And it is super fast on new use didn't experience any slowdown really and it is entirely useful for | |
| 12 | |
| 00:00:43,960 --> 00:00:49,580 | |
| us to set up our deepening machine because deepening software on Windows is not well-supported. | |
| 13 | |
| 00:00:49,660 --> 00:00:55,450 | |
| However on Linux or Ubuntu it is a very good environment for running on our software. | |
| 14 | |
| 00:00:55,780 --> 00:01:01,740 | |
| So what you do now is you download either to Windows OS X versions according to what you're using. | |
| 15 | |
| 00:01:01,960 --> 00:01:03,480 | |
| So I'm not going to be Windows. | |
| 16 | |
| 00:01:03,480 --> 00:01:05,020 | |
| I've really done with it here. | |
| 17 | |
| 00:01:05,380 --> 00:01:13,390 | |
| So now what you do as well is you download from the link in the resources file download the deepening | |
| 18 | |
| 00:01:13,420 --> 00:01:15,100 | |
| C-v open to that. | |
| 19 | |
| 00:01:15,180 --> 00:01:15,950 | |
| File. | |
| 20 | |
| 00:01:16,210 --> 00:01:21,450 | |
| This is your wish your machine that we're going to set up so that you have those two files. | |
| 21 | |
| 00:01:21,760 --> 00:01:23,840 | |
| Here we are ready to get started. | |
| 22 | |
| 00:01:23,890 --> 00:01:27,250 | |
| So now we have to firstly install virtual box. | |
| 23 | |
| 00:01:27,250 --> 00:01:30,050 | |
| Now I know this file is quite huge just nine gigs. | |
| 24 | |
| 00:01:30,220 --> 00:01:35,470 | |
| So you probably would have wanted to leave this overnight if you have a relatively slow broadband connection. | |
| 25 | |
| 00:01:35,470 --> 00:01:38,350 | |
| However if you're a fast connection should take about an hour. | |
| 26 | |
| 00:01:38,790 --> 00:01:40,870 | |
| Either way let's install virtual box | |
| 27 | |
| 00:01:43,800 --> 00:01:46,150 | |
| so you get to run standard procedure. | |
| 28 | |
| 00:01:49,150 --> 00:01:52,600 | |
| I'm not going to do the Mac install video because I don't have access to a Mac. | |
| 29 | |
| 00:01:52,690 --> 00:01:55,590 | |
| But as soon as I do upload a video for you Mac users. | |
| 30 | |
| 00:01:55,720 --> 00:02:00,340 | |
| However it's a standard installation procedure and all the settings are the same but generally for Mac | |
| 31 | |
| 00:02:00,400 --> 00:02:01,370 | |
| and Windows. | |
| 32 | |
| 00:02:01,420 --> 00:02:04,150 | |
| So this should relate to you as well. | |
| 33 | |
| 00:02:04,810 --> 00:02:06,810 | |
| So you leave all the details here as well. | |
| 34 | |
| 00:02:06,840 --> 00:02:08,480 | |
| It's best next. | |
| 35 | |
| 00:02:08,500 --> 00:02:17,590 | |
| Next again you can optionally can do this if you want find this is fine press yes install. | |
| 36 | |
| 00:02:17,610 --> 00:02:18,150 | |
| Do we go | |
| 37 | |
| 00:02:23,490 --> 00:02:23,840 | |
| OK. | |
| 38 | |
| 00:02:23,870 --> 00:02:27,600 | |
| So we've finished installation process and now you can start. | |
| 39 | |
| 00:02:27,650 --> 00:02:31,130 | |
| You'll get your rocks off and I'll show you how to get everything set up. | |
| 40 | |
| 00:02:31,130 --> 00:02:31,470 | |
| All right. | |
| 41 | |
| 00:02:31,470 --> 00:02:37,550 | |
| So here we are on a virtual box manage your software so please ignore these two virtual machines I have | |
| 42 | |
| 00:02:37,550 --> 00:02:37,820 | |
| a break. | |
| 43 | |
| 00:02:37,820 --> 00:02:42,930 | |
| No yours is going to be blank right now since semanticists and you're going to be using this. | |
| 44 | |
| 00:02:42,950 --> 00:02:46,730 | |
| So go to file and import appliance. | |
| 45 | |
| 00:02:46,940 --> 00:02:52,470 | |
| And now go to the directory where you downloaded your virtual box start of the file. | |
| 46 | |
| 00:02:52,500 --> 00:02:53,330 | |
| All right. | |
| 47 | |
| 00:02:53,460 --> 00:02:57,260 | |
| So go to open and press next. | |
| 48 | |
| 00:02:57,260 --> 00:03:03,070 | |
| Now I have it set to my virtual machine to use force use and use it to exit from. | |
| 49 | |
| 00:03:03,170 --> 00:03:05,370 | |
| That is basically of course CPI. | |
| 50 | |
| 00:03:05,390 --> 00:03:10,550 | |
| So I have it logical cause and I have and get 16 gig of ram in my system. | |
| 51 | |
| 00:03:10,550 --> 00:03:17,110 | |
| So you're going to want to put it to at least half of what your host system can support. | |
| 52 | |
| 00:03:17,120 --> 00:03:20,690 | |
| So if you have a dual call you can use two here. | |
| 53 | |
| 00:03:20,750 --> 00:03:24,330 | |
| And if you have it is a Frahm you can use for gigs here. | |
| 54 | |
| 00:03:24,680 --> 00:03:27,960 | |
| So we can make those adjustments and leave everything else the same. | |
| 55 | |
| 00:03:27,960 --> 00:03:32,830 | |
| It's fine and good to import. | |
| 56 | |
| 00:03:33,020 --> 00:03:37,840 | |
| And now this time is basically a lie it's going to take maybe about 10 20 minutes. | |
| 57 | |
| 00:03:37,840 --> 00:03:42,820 | |
| So I'm going to pause the video here and when it's done we can start off with your machine and I'll | |
| 58 | |
| 00:03:42,820 --> 00:03:43,780 | |
| show you how to use it. | |
| 59 | |
| 00:03:43,780 --> 00:03:47,580 | |
| It's quite easy and we'll get done it and set up whole code. | |
| 60 | |
| 00:03:47,710 --> 00:03:48,960 | |
| And that should be at | |
| 61 | |
| 00:03:51,780 --> 00:03:52,140 | |
| OK. | |
| 62 | |
| 00:03:52,160 --> 00:03:53,000 | |
| So that's it. | |
| 63 | |
| 00:03:53,000 --> 00:03:56,430 | |
| We have just installed virtual machine. | |
| 64 | |
| 00:03:56,460 --> 00:04:00,050 | |
| So now this is the new one here because I already have it working here. | |
| 65 | |
| 00:04:00,050 --> 00:04:02,960 | |
| It came up as under school one knows is going to be this one. | |
| 66 | |
| 00:04:02,960 --> 00:04:04,980 | |
| So either way it's the same machine. | |
| 67 | |
| 00:04:05,000 --> 00:04:09,230 | |
| So let's just start this one fresh one I just installed. | |
| 68 | |
| 00:04:10,160 --> 00:04:21,270 | |
| It takes about maybe tity seconds to boot up at least on my system. | |
| 69 | |
| 00:04:21,430 --> 00:04:24,340 | |
| This is all normal by the way it's a pudding's screenful and Ventoux | |
| 70 | |
| 00:04:33,510 --> 00:04:34,120 | |
| There we go. | |
| 71 | |
| 00:04:34,320 --> 00:04:35,650 | |
| So we're loaded. | |
| 72 | |
| 00:04:35,880 --> 00:04:36,770 | |
| Oh yes. | |
| 73 | |
| 00:04:36,780 --> 00:04:37,670 | |
| This is pretty cool. | |
| 74 | |
| 00:04:37,670 --> 00:04:41,470 | |
| So now you're actually running Ubuntu within Windows. | |
| 75 | |
| 00:04:41,850 --> 00:04:45,660 | |
| And it's because it's using of which lies those features on your CD. | |
| 76 | |
| 00:04:46,020 --> 00:04:47,430 | |
| It's going to run pretty quick. | |
| 77 | |
| 00:04:47,430 --> 00:04:49,460 | |
| You're not going to notice much of a slowdown. | |
| 78 | |
| 00:04:49,470 --> 00:04:52,110 | |
| So what I want to do is two things I want to show you. | |
| 79 | |
| 00:04:52,110 --> 00:04:55,580 | |
| First of all your password for your virtual machine. | |
| 80 | |
| 00:04:55,800 --> 00:05:01,950 | |
| Whenever you do sudo or any sort of flick system settings we change users and stuff the password for | |
| 81 | |
| 00:05:01,950 --> 00:05:05,960 | |
| this user is 1 1 2 2 treat 3 4 4. | |
| 82 | |
| 00:05:06,180 --> 00:05:11,820 | |
| It's going to be in the touch resources of your file and I'm going to display it on screen as well. | |
| 83 | |
| 00:05:11,940 --> 00:05:13,260 | |
| So you don't forget it. | |
| 84 | |
| 00:05:13,290 --> 00:05:17,130 | |
| So let's just see something here. | |
| 85 | |
| 00:05:17,130 --> 00:05:23,090 | |
| So what I want to show you is that we have our old machine this is all file structure here. | |
| 86 | |
| 00:05:23,160 --> 00:05:25,640 | |
| So this is a home directory right now. | |
| 87 | |
| 00:05:25,890 --> 00:05:28,690 | |
| We have a bunch of things installed here right now. | |
| 88 | |
| 00:05:29,190 --> 00:05:33,380 | |
| Basically this these things are a lot of deepening libraries. | |
| 89 | |
| 00:05:33,420 --> 00:05:38,550 | |
| And I have some instructions as well you don't need to use these right now but what I want to show you | |
| 90 | |
| 00:05:38,550 --> 00:05:42,310 | |
| is to basically set up your code and train models. | |
| 91 | |
| 00:05:42,330 --> 00:05:42,880 | |
| OK. | |
| 92 | |
| 00:05:43,170 --> 00:05:44,300 | |
| So stay tuned. | |
| 93 | |
| 00:05:44,650 --> 00:05:44,950 | |
| OK. | |
| 94 | |
| 00:05:44,970 --> 00:05:53,210 | |
| So what I'm going to need you to do is open Firefox that's a web browser on the buntu by default and | |
| 95 | |
| 00:05:53,210 --> 00:06:01,800 | |
| what to do is when Firefox boots up I want you to go to your dummy account when you come and with the | |
| 96 | |
| 00:06:01,840 --> 00:06:07,460 | |
| attached resources to this lesson which is also the deep linning code library. | |
| 97 | |
| 00:06:07,540 --> 00:06:11,950 | |
| Let's just wait for it to boot up here I think my system has a lot of stuff running right now. | |
| 98 | |
| 00:06:12,110 --> 00:06:14,820 | |
| But either way just go to your dummy dot com | |
| 99 | |
| 00:06:17,690 --> 00:06:19,650 | |
| and is like Friday so we're on right now. | |
| 100 | |
| 00:06:19,650 --> 00:06:20,750 | |
| Nice. | |
| 101 | |
| 00:06:20,780 --> 00:06:24,290 | |
| So what to do is basically log into your account. | |
| 102 | |
| 00:06:24,470 --> 00:06:25,840 | |
| However you've done it before. | |
| 103 | |
| 00:06:25,880 --> 00:06:32,300 | |
| Whichever method you use and download the resources for this for the course that's the code and Treen | |
| 104 | |
| 00:06:32,300 --> 00:06:38,270 | |
| model is zip file and download it and it's going to save in your Downloads folder right here. | |
| 105 | |
| 00:06:38,270 --> 00:06:39,470 | |
| This is the same file. | |
| 106 | |
| 00:06:40,010 --> 00:06:42,620 | |
| And this is a file once you extract. | |
| 107 | |
| 00:06:42,740 --> 00:06:50,720 | |
| So double click and this file is going to take a bit to 10 seconds or so to open it's a big file. | |
| 108 | |
| 00:06:50,750 --> 00:06:53,990 | |
| So it's reasonable. | |
| 109 | |
| 00:06:54,180 --> 00:07:00,120 | |
| And this file here I want you to extract it to your home directory here. | |
| 110 | |
| 00:07:00,660 --> 00:07:02,370 | |
| So let's go ahead and do that | |
| 111 | |
| 00:07:05,210 --> 00:07:08,020 | |
| let's just reduce this clutter in the background. | |
| 112 | |
| 00:07:09,010 --> 00:07:13,630 | |
| And this takes about a minute actually less much less 10 minutes to extract | |
| 113 | |
| 00:07:22,690 --> 00:07:31,350 | |
| and when it's done you will see all the code that we need for this course is in a convenient location. | |
| 114 | |
| 00:07:31,480 --> 00:07:33,130 | |
| So just quit this | |
| 115 | |
| 00:07:35,680 --> 00:07:36,270 | |
| close | |
| 116 | |
| 00:07:39,700 --> 00:07:40,850 | |
| and doing something. | |
| 117 | |
| 00:07:40,880 --> 00:07:42,750 | |
| But that's fine. | |
| 118 | |
| 00:07:42,760 --> 00:07:48,510 | |
| What I want to do is go to home and now you see just Eritrea de-planing CV and it is also a shortcut | |
| 119 | |
| 00:07:48,630 --> 00:07:50,530 | |
| to do the same directory. | |
| 120 | |
| 00:07:50,850 --> 00:07:52,770 | |
| And let's go back to it here. | |
| 121 | |
| 00:07:52,830 --> 00:07:55,620 | |
| This is decomp. | |
| 122 | |
| 00:07:55,620 --> 00:08:00,020 | |
| The contents of this are actually sortable and list here. | |
| 123 | |
| 00:08:00,030 --> 00:08:05,360 | |
| These are this is all the code entery Mullins is going to need the discourse and it's conveniently extracted | |
| 124 | |
| 00:08:05,360 --> 00:08:07,210 | |
| now within your virtual machine. | |
| 125 | |
| 00:08:07,220 --> 00:08:09,070 | |
| So now let's go back to Python. | |
| 126 | |
| 00:08:09,080 --> 00:08:10,460 | |
| Sorry Otunnu. | |
| 127 | |
| 00:08:10,880 --> 00:08:13,150 | |
| So let's play this. | |
| 128 | |
| 00:08:13,160 --> 00:08:16,580 | |
| So what if we wanted to test our code. | |
| 129 | |
| 00:08:16,880 --> 00:08:26,090 | |
| So what do you do you go to you press source type source activate C-v that's what the plumbing environment | |
| 130 | |
| 00:08:26,090 --> 00:08:27,100 | |
| for computer vision. | |
| 131 | |
| 00:08:27,440 --> 00:08:28,680 | |
| And it's instantly done. | |
| 132 | |
| 00:08:28,730 --> 00:08:30,860 | |
| And now you type python. | |
| 133 | |
| 00:08:31,420 --> 00:08:34,890 | |
| Notebook and magic happens. | |
| 134 | |
| 00:08:34,890 --> 00:08:39,390 | |
| What this does it starts a local server that hosts your it on the browser. | |
| 135 | |
| 00:08:39,900 --> 00:08:45,240 | |
| So now this is where we run all our Python code and I'm going is going to do a brief tutorial on that | |
| 136 | |
| 00:08:45,260 --> 00:08:45,870 | |
| here. | |
| 137 | |
| 00:08:46,130 --> 00:08:51,100 | |
| So now just good de-planing CV that's just good chapter for getting started. | |
| 138 | |
| 00:08:51,450 --> 00:08:54,990 | |
| And let's run our Actually let's run our life sketching | |
| 139 | |
| 00:08:59,390 --> 00:09:03,020 | |
| because this loads much quicker and we don't need any files for this. | |
| 140 | |
| 00:09:03,020 --> 00:09:06,870 | |
| So let's run this block of code. | |
| 141 | |
| 00:09:07,070 --> 00:09:11,450 | |
| I put on the books are basically just blocks of code we can run and all the variables everything is | |
| 142 | |
| 00:09:11,450 --> 00:09:13,460 | |
| stored inside of it. | |
| 143 | |
| 00:09:13,910 --> 00:09:19,400 | |
| So you press shift and still control and to shift and to run it here. | |
| 144 | |
| 00:09:19,430 --> 00:09:25,820 | |
| This takes about maybe five seconds or less every print division up and see that we're we're using 3.4. | |
| 145 | |
| 00:09:26,150 --> 00:09:29,440 | |
| If you press Allt and you get a new line below. | |
| 146 | |
| 00:09:29,480 --> 00:09:34,690 | |
| So that's sometimes convenient sometimes not shift into just runs it with our precinct producing this | |
| 147 | |
| 00:09:34,700 --> 00:09:36,020 | |
| new cell here. | |
| 148 | |
| 00:09:36,170 --> 00:09:38,890 | |
| And to delete that espress cut. | |
| 149 | |
| 00:09:38,960 --> 00:09:46,460 | |
| So now let's run our sketch now before we do this we're going to have to go with devices here webcams | |
| 150 | |
| 00:09:46,490 --> 00:09:48,930 | |
| and take off integrated webcam. | |
| 151 | |
| 00:09:49,280 --> 00:09:54,490 | |
| And now let's press shift into to run this block of gold. | |
| 152 | |
| 00:09:54,530 --> 00:09:55,050 | |
| There we go. | |
| 153 | |
| 00:09:55,130 --> 00:09:59,320 | |
| So this is our browser all lives this is me chatting here. | |
| 154 | |
| 00:09:59,540 --> 00:10:00,590 | |
| This is my microphone. | |
| 155 | |
| 00:10:00,590 --> 00:10:01,910 | |
| The door is in the back. | |
| 156 | |
| 00:10:01,910 --> 00:10:04,450 | |
| So this is pretty cool isn't it. | |
| 157 | |
| 00:10:04,850 --> 00:10:08,480 | |
| So that's close us and that is it. | |
| 158 | |
| 00:10:08,480 --> 00:10:10,270 | |
| So we have all of the code here. | |
| 159 | |
| 00:10:10,310 --> 00:10:16,020 | |
| Everything is preinstalled all the terror Karris tends to flow a bunch of supporting libraries. | |
| 160 | |
| 00:10:16,080 --> 00:10:21,410 | |
| The lib is installed a lot of things are stored Actually it probably takes about an hour to do even | |
| 161 | |
| 00:10:21,600 --> 00:10:23,400 | |
| with some sometimes to install everything. | |
| 162 | |
| 00:10:23,750 --> 00:10:24,350 | |
| So that's it. | |
| 163 | |
| 00:10:24,350 --> 00:10:27,930 | |
| You have your full video machine running here. | |