1
00:00:00,240 --> 00:00:05,790
I believe gone through the frequently asked questions on Google laboratory because I know when I first

2
00:00:05,790 --> 00:00:10,910
started using Google collab I ran into a bunch of things that would have definitely been solved if I'd

3
00:00:10,910 --> 00:00:12,210
just read through there.

4
00:00:12,240 --> 00:00:17,610
So don't make the same mistake that I made and not just quickly read through.

5
00:00:17,610 --> 00:00:22,760
It's like when you have an opportunity to read documentation or just fumble around coding for hours.

6
00:00:22,770 --> 00:00:27,180
I mean why wouldn't argue that fumbling around coding for hours helps you learn more.

7
00:00:27,180 --> 00:00:32,160
But there are some things that you can just quickly get an answer to by just spending five to 10 minutes

8
00:00:32,160 --> 00:00:34,850
having a little read OK.

9
00:00:34,910 --> 00:00:42,670
Now how do we get this little zip file that We've downloaded from Kaggle through here.

10
00:00:42,670 --> 00:00:45,520
How do we get this into our code laboratory noble.

11
00:00:45,520 --> 00:00:46,620
We have no project.

12
00:00:46,630 --> 00:00:50,150
If we have no data let's do that in this video.

13
00:00:50,500 --> 00:00:52,750
What I might do is give this little name.

14
00:00:52,750 --> 00:00:59,740
So I'm going to call this dog vision because I love that name sounds cool and I'm going to delete these

15
00:00:59,740 --> 00:01:02,840
cells wonderful.

16
00:01:03,160 --> 00:01:09,460
And then what I'm gonna do is I'm going to click this one mount drive and I'm not going to talk about

17
00:01:09,460 --> 00:01:09,920
it.

18
00:01:10,030 --> 00:01:13,350
I'm gonna do it and then see what happens mount drive.

19
00:01:13,350 --> 00:01:14,440
So what does this do.

20
00:01:14,440 --> 00:01:15,530
Mm hmm.

21
00:01:15,580 --> 00:01:19,600
Permit this notebook to access your google drive files.

22
00:01:19,630 --> 00:01:26,260
Okay so connect into Google Drive or permit code executed in this notebook to modify files in your google

23
00:01:26,260 --> 00:01:27,360
drive.

24
00:01:27,460 --> 00:01:34,170
So we were to read through this Google car lab the IO notebook how do we get it.

25
00:01:35,120 --> 00:01:39,170
This is the one we're going to follow through with mounting our Google Drive.

26
00:01:40,050 --> 00:01:45,970
So Google Drive is what you get when you have a Google account is like a cloud storage for all of your

27
00:01:45,970 --> 00:01:47,710
information.

28
00:01:47,810 --> 00:01:54,280
And so we're going to connect this to our Google Drive to upload this zip file to our Google Drive and

29
00:01:54,280 --> 00:02:01,370
then work with the data in this collaboratively notebook whilst it lives in our Google drawer.

30
00:02:01,390 --> 00:02:08,540
So just exactly like we were working with Jupiter and except it was accessing data on our local computer.

31
00:02:08,800 --> 00:02:15,660
Now all of our data and code is going to live in Google Drive rather than our own computer.

32
00:02:15,760 --> 00:02:20,270
So let's connect to Google Drive it's gonna ask me to sign and choose my account.

33
00:02:20,280 --> 00:02:27,890
This is my account here I get a little progress by here mounting Google Drive.

34
00:02:27,980 --> 00:02:29,450
Beautiful.

35
00:02:29,450 --> 00:02:30,750
So we go here.

36
00:02:31,100 --> 00:02:35,990
Now I've got access to all of the files in my drive.

37
00:02:35,990 --> 00:02:39,490
Wonderful so there we got car lab notebooks.

38
00:02:39,500 --> 00:02:43,640
This is where all of our car lab notebooks are gonna be stored so you can say hey I've got a couple

39
00:02:43,640 --> 00:02:48,200
of versions of this project because because while I was building out the whole project I was going through

40
00:02:48,200 --> 00:02:52,290
a few iterations and we're at the final one now that's we're gonna be replicating.

41
00:02:52,300 --> 00:02:54,710
I'm going to create a new folder in drive.

42
00:02:54,710 --> 00:03:03,000
So it turns out we can remember if in doubt run the code and so we're going to rename this dog vision

43
00:03:07,530 --> 00:03:09,690
beautiful may take a little while to update.

44
00:03:10,320 --> 00:03:14,070
So if we go on a dog vision we're going to be nothing in there of course because we've just created

45
00:03:14,070 --> 00:03:15,000
a new file.

46
00:03:15,480 --> 00:03:20,790
I'm using google chrome some I download will be here if yours isn't go to your Downloads folder you

47
00:03:20,790 --> 00:03:27,780
can probably grab it from here and then to get this zip file that we downloaded from Kaggle into our

48
00:03:27,780 --> 00:03:39,900
Google Drive and subsequently eventually into our Google curl up notebook we can drag it into here.

49
00:03:39,910 --> 00:03:40,960
What's this.

50
00:03:40,960 --> 00:03:47,290
Rolonda uploaded files will get deleted when is runtime is recycled.

51
00:03:48,620 --> 00:03:49,540
OK.

52
00:03:49,690 --> 00:03:56,120
So if we get more info where is this take us back to the frequently asked questions.

53
00:03:56,410 --> 00:04:04,720
Now you can see where I got tricked right because my instincts were to drag and drop files into here

54
00:04:05,590 --> 00:04:06,880
not the right way to do it.

55
00:04:07,510 --> 00:04:11,250
So the best way to do it right click here.

56
00:04:12,550 --> 00:04:26,250
Upload so let's go upload and we're gonna go into our downloads folder click dog radar ID dot zip open.

57
00:04:26,450 --> 00:04:35,530
Now this is going to upload it to the correct file so if we look at our dog great ID don't zip.

58
00:04:35,530 --> 00:04:41,730
You also get this one which is actually uploading it to this runtime here.

59
00:04:41,770 --> 00:04:49,990
So if we did it this way with this little progress bar it's going to delete all of our data if our runtime

60
00:04:50,080 --> 00:04:57,320
disconnects so remember the correct way to upload if we're using Google Drive if we're if we've mounted

61
00:04:57,320 --> 00:05:01,310
our drive is to go here right click upload.

62
00:05:01,310 --> 00:05:05,690
Or you could also do it through drive dot google dot com

63
00:05:11,280 --> 00:05:18,960
so if I go into I've got dog vision now so we can see here this is going to be uploading for a little

64
00:05:18,960 --> 00:05:28,760
while because it is 13 megabytes is uploaded to Google Cloud so far but if I come back to my local computer

65
00:05:29,450 --> 00:05:34,250
it's actually seven hundred and twenty four megabytes so we're going to have to wait a little while

66
00:05:34,370 --> 00:05:37,640
until our data is in it is in drive.

67
00:05:37,640 --> 00:05:40,200
So I'll let you do that.

68
00:05:40,280 --> 00:05:44,840
Remember you can also upload it just by dragging it into Google Drive.

69
00:05:44,840 --> 00:05:47,430
Make sure you're at drive dot google dot com.

70
00:05:47,570 --> 00:05:51,460
I'm not going to drag mine into that because it's already uploading through collab.

71
00:05:51,500 --> 00:05:57,920
So once this is fully uploaded we'll come back and because it's a zip file we'll need to unzip it so

72
00:05:57,920 --> 00:05:59,860
we can access the information that's in there.

73
00:06:01,570 --> 00:06:02,950
So a few steps.

74
00:06:03,550 --> 00:06:06,310
All I did was click mount drive.

75
00:06:06,640 --> 00:06:08,830
It's now on Mount drive because I've done that.

76
00:06:09,040 --> 00:06:13,930
I created a new folder in my google drive called Dog vision that's what we're gonna be working on this

77
00:06:13,930 --> 00:06:14,860
project.

78
00:06:15,130 --> 00:06:23,920
And then I made sure to right click on dog vision and click upload where I uploaded the dog breed ID

79
00:06:23,950 --> 00:06:30,490
dot zip file that we downloaded from Kaggle so go through those steps.

80
00:06:30,520 --> 00:06:32,040
Check out your google drive.

81
00:06:32,200 --> 00:06:37,340
Make sure that it's uploaded all of the megabytes don't get caught out like I did trying to access a

82
00:06:37,340 --> 00:06:40,050
zip file before it's all uploaded to Google Drive.

83
00:06:40,450 --> 00:06:43,670
So once that reaches 724 may take a while.

84
00:06:43,660 --> 00:06:48,400
So this is probably now a good time to go have a break have a cup of coffee go for a walk or something

85
00:06:48,400 --> 00:06:51,570
like that and come back when the data's uploaded and ready to go.
