Now we understand the problem we are trying to solve.
We'll go ahead and download our data set.
So first things first, we'll head over to Kaggle where we're going to make use of Rajkumar's data set
entitled The People Coding segmentation.
Um, data set.
That's all the images of people and semantic segmentation, masks of their different codings.
Um, if you scroll down here, you'll see this Jpeg images and the corresponding Jpeg masks, same as
the PNG images and the corresponding PNG masks.
So this is the data set we are going to be working with, which also comes with this labels csv file.
In this label CSV file we have all the different classes which we are going to use in our data set.
So we go from accessories right up to uh wedges.
So we have 59 classes including this null.
That is um, to say we have the background.
Now if we scroll back up here and we open this up, you find that for every image, as we had said already,
we are going to have a corresponding mask.
So this is image 0001.
If you open this up you have this image of this lady.
And then we use this and check out this corresponding mask.
So open this up.
We have there we go.
We have its corresponding mask.
In summary, for every pixel point in the image there is a corresponding point in the mask.
And there's different images.
And masks are stored in different folders in our data set.
Before we proceed to download this data set, we should note that it contains a thousand images and
segmentation masks, pairs of individual people's clothings, and 59 object classes, which we had seen
already in the labels CSV file.
Then also we could go ahead and click on settings.
We scroll down and then we click on Create New Token.
Once you click on Create New token, you will have a Kaggle dot Json file.
And once you have this Kaggle dot Json file downloaded, you then go ahead and upload it to Google Colab.
So this is our Kaggle dot Json file right here.
And now we install Kaggle.
We are going to make this new directory.
We're going to copy our Kaggle dot Json file into our Kaggle directory.
Then we'll finally download our dataset.
Let's get back.
Um let's go back.
And then we copy this command.
So here we have let's reduce this so you could see it clearly.
So we have copy API command.
So if you copy this and then you paste our leisure spaces out down here.
If you paste this out here you see you have Kaggle datasets download.
And then you have the the owner that's the creator of this data set.
And then you have the data set name.
So that's it.
We run this cell.
And then given that the output or what we are going to download is going to be this zip file, we are
going to unzip this into our data set folder.
After the downloading and unzipping is done we open up this files.
And then you could see that we have this people clothing segmentation dot zip file.
And then we have in our data set folder we have exact same folders we had seen already in this Kaggle
data set on the Kaggle platform itself.
So right here we have images.
We have the masks.
And then we could now prepare this data set.