Mask Prediction
[ Getting Started Notebook ] Mask Recognition
A getting started notebook for the challenge.
Getting Started with Mask Recognition Challenge
In this puzzle, we have detect mask type and bounding box of the mask from the image of human face.
This is a starter kit explaining how to download the data and also submit direcly via this notebook.
We will be submitting the sample prediction directly in the required format.
AIcrowd code utilities for downloading data for Language Classification
In [ ]:
!pip install aicrowd-cli
%load_ext aicrowd.magic
Login to AIcrowd ㊗¶¶
In [ ]:
%aicrowd login
Download Dataset¶¶
We will create a folder name data and download the files there.
In [ ]:
!rm -rf data
!mkdir data
%aicrowd ds dl -c mask-prediction -o data
In [ ]:
!unzip data/train.zip -d data/train > /dev/null
!unzip data/val.zip -d data/val > /dev/null
!unzip data/test.zip -d data/test > /dev/null
Diving in the dataset 🕵️♂️¶
In [ ]:
import pandas as pd
import numpy as np
import os
Diving in the dataset 🕵️♂️¶
In [ ]:
train_images = 'data/train'
val_images = 'data/val'
test_images = 'data/test'
Generating Prediction File¶
In this starter kit we will directly be submitting the sample prediction file. In case you would like to see a submission via baseline model, check it out here.
In [ ]:
submission = pd.read_csv('data/sample_submission.csv')
In [ ]:
submission.head()
Out[ ]:
In [ ]:
!rm -rf assets
!mkdir assets
submission.to_csv(os.path.join("assets", "submission.csv"))
Submitting our Predictions¶
Note : Please save the notebook before submitting it (Ctrl + S)
In [ ]:
%aicrowd notebook submit -c mask-prediction -a assets --no-verify
Content
Comments
You must login before you can post a comment.