I believe gone through the frequently asked questions on Google laboratory because I know when I first
started using Google collab 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 why wouldn't 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 five to 10 minutes
having a little read OK.
Now how do we get this little zip file that We've downloaded from Kaggle through here.
How do we get this into our code laboratory noble.
We have no project.
If we have no data let's do that in this video.
What I might do is give this little name.
So I'm going to call this dog vision because I love that name sounds cool and I'm going to delete these
cells wonderful.
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
it.
I'm gonna do it and then see what happens mount drive.
So what does this do.
Mm hmm.
Permit this notebook to access your google drive files.
Okay so connect into Google Drive or permit code executed in this notebook to modify files in your google
drive.
So we were to read through this Google car lab 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.
And 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 collaboratively notebook whilst it lives in our Google drawer.
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 gonna ask me to sign and choose my account.
This is my account here I get a little progress by here mounting Google Drive.
Beautiful.
So we go here.
Now I've got access to all of the files in my drive.
Wonderful so there we got car lab notebooks.
This is where all of our car lab notebooks are gonna be stored so you can say hey 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 we're gonna be replicating.
I'm 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 we're going to be nothing in there of course because we've just created
a new file.
I'm using google chrome some I 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 curl up notebook we can drag it into here.
What's this.
Rolonda uploaded files will get deleted when is runtime is recycled.
OK.
So if we get more info where is 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 gonna go into our downloads folder click dog radar ID dot zip open.
Now this is going to upload it to the correct file so if we look at our dog great ID don't 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 dot google dot 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 seven hundred and twenty four megabytes so we're going to have to wait a little while
until our data is in it is in drive.
So I'll let you do that.
Remember you can also upload it just by dragging it into Google Drive.
Make sure you're at drive dot google dot com.
I'm not going to drag mine into that because it's already uploading through collab.
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.
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 what we're gonna 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
dot 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 a
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's uploaded and ready to go.