‫I believe I've gone through the frequently asked questions on Google Collaboratory because I know when
‫I first started using Google CoLab, I ran into a bunch of things that would have definitely been solved
‫if I'd just read through there.
‫So don't make the same mistake that I made and not just quickly read through.
‫It's like when you have an opportunity to read documentation or just fumble around coding for hours.
‫I mean, one would argue that fumbling around coding for hours helps you learn more.
‫But there are some things that you can just quickly get an answer to by just spending 5 to 10 minutes
‫having a little read OC.
‫Now, how do we get this little zip file that we've downloaded from Kaggle?
‫Through here.
‫How do we get this into our laboratory notebook?
‫We have no project if we have no data.
‫Let's do that in this video.
‫What I might do is give this a little name.
‫So I'm going to call this dog vision.
‫Because I love that name.
‫It sounds cool and I'm going to delete these cells.
‫Wonderful.
‫And then what I'm going to do is I'm going to click this one Mount Drive, and I'm not going to talk
‫about it.
‫I'm going to do it and then see what happens.
‫Mount Drive.
‫So what does this do?
‫Permit this notebook to access your Google Drive files.
‫Okay, so connecting to Google Drive or permit code executed in this notebook to modify files in your
‫Google Drive.
‫So.
‫If we were to read through this Google CoLab, the IO notebook, how do we get it?
‫This is the one we're going to follow through with mounting our Google drive.
‫So Google Drive is what you get when you have a Google account is like a cloud storage for all of your
‫information.
‫So we're going to connect this to our Google Drive to upload this zip file to our Google Drive and then
‫work with the data in this collaboratory notebook whilst it lives in our Google Drive.
‫So just exactly like we were working with Jupiter and except it was accessing data on our local computer,
‫now all of our data and code is going to live in Google Drive rather than our own computer.
‫So let's connect to Google Drive.
‫It's going to ask me to sign in.
‫Choose my account.
‫This is my account here.
‫I'm going to get a little progress bar here.
‫Mountain.
‫Google Drive.
‫Beautiful.
‫So if we go here now, I've got access to all of the files in my drive.
‫Wonderful.
‫So there we got CoLab notebooks.
‫This is where all of our CoLab notebooks are going to be stored.
‫So you can see here, I've got a couple of versions of this project because because while I was building
‫out the whole project, I was going through a few iterations and we're at the final one now.
‫That's what we're going to be replicating.
‫We're going to create a new folder in drive.
‫So it turns out we can remember, if in doubt, run the code.
‫And so we're going to rename this.
‫Dog vision.
‫Beautiful may take a little while to update.
‫So if we go on a dog vision, you're going to be nothing in there, of course, because we just created
‫a new file.
‫I'm using Google Chrome, so my download will be here.
‫If yours isn't, go to your downloads folder, you can probably grab it from here.
‫And then to get this zip file that we downloaded from Kaggle into our Google Drive and subsequently
‫eventually into our Google CoLab notebook, we can drag it.
‫India.
‫Oops.
‫What's this?
‫Reminder, uploader files will get deleted when this runtime is recycled.
‫Oh.
‫Okay.
‫So if we go more info.
‫Where's this?
‫Take us back to the frequently asked questions.
‫Now you can see where I got tricked.
‫Right.
‫Because my instincts were to drag and drop files into here.
‫Not the right way to do it.
‫So the best way to do it.
‫Right click here.
‫Upload.
‫So let's go upload.
‫And we're going to go into our downloads folder, click dog raid ID Zip.
‫Open.
‫Now this is going to upload it to the correct file.
‫So if we look their dog breed ID zip, you also get this one which is actually uploading it to this
‫runtime here.
‫So if we did it this way with this little progress bar, it's going to delete all of our data if our
‫runtime disconnects.
‫So remember the correct way to upload if we're using Google Drive, if we're if we've mounted our drive
‫is to go here right click upload or you could also do it through drive google.com.
‫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 while because it is.
‫13 megabytes is uploaded to Google Cloud so far.
‫But if I come back to my local computer, it's actually 724 megabytes.
‫So we're going to have to wait a little while into our data is in it is in drive.
‫So I'll let you do that.
‫Remember, you can also upload it just by drag it into Google Drive, make sure you're at Drive Google.com.
‫I'm not going to drag money into there because it's already uploading through CoLab.
‫So once this is fully uploaded, we'll come back.
‫And because it's a zip file, we'll need to unzip it so we can access the information that's in there.
‫So a few steps there.
‫All I did was click Mount Drive.
‫It's now on Mount Drive because I've done that.
‫I created a new folder in my Google Drive called Dog Vision.
‫That's where we're going to be working on this project.
‫And then I made sure to right click on Dog Vision and click Upload where I uploaded the dog breed ID
‫Zip file that we downloaded from Kaggle.
‫So go through those steps, check out your Google Drive, make sure that it's uploaded all of the megabytes
‫don't get caught out like I did trying to access this zip file before it's all uploaded to Google Drive.
‫So once that reaches 724 may take a while.
‫So this is probably now a good time to go have a break, have a cup of coffee, go for a walk or something
‫like that and come back when the data is uploaded and ready to go.