- Create a directory at root level of this project named dataset.
- Add 2 sub-directories named
menandwomencontaining respective images for men and women. - Run
train.pyfor training. - Run
test.pyfile for output.
# Trainig
python train.py
# Prediction
python test.py -i <path to input image>- Login using AWS SDK in CLI.
- Run
buildpush.shfile located insidecontainerdirectory.
cd container
./buildpush.sh <image name>This script accepts one argument for image name. Image is generated using Dockerfile located at /container. After building image, Image will be pushed to Amazon ECR.
Head over to Amazon Sagemaker , create instance and specify to path to image pushed in above script. This image can be used for training and creating endpoints.