A Classification algorithm trained using a Convolutional Neural Network model on philips dataset to classify images as shaver, smart-baby-bottle, toothbrush and wake-up-light. This repository delivers the solution to the image classification problem as challenged in the philips case package. Due to the space constraint the docker image has not been uploaded here but, instead a set of instructions are provided to safely download and run the docker image successfully.
The docker image has been uploaded to a docker-hub repository.
- Firstly, make sure that the docker tool has been installed and up-and-running on your system properly. If incase not, then follow this link.
- Pull the docker image from the docker repository using
~$ docker pull kirankt1995/philips_tech_xperience
command. Incase the docker is run as root, usesudo
like~$ sudo docker pull kirankt1995/philips_tech_xperience
.
This docker image comes with all dependency packages installed so there is no need to worry about dependency anxeity 😀. An empty folder /Validation_Images
is also created so one can mount their test-images-folder on host to this folder while running the image in a container.
- Place all test images in the test-images-folder.
- Now all you have to do is run this command:
~$ docker run -it --rm -v <src-test_images_dir>:/Validation_Images kirankt1995/philips_tech_xperience:latest python -W ignore classification_model.py
.
Note: Pass in the absolute path in <src-test_images_dir>
of your test-images-folder.
A sample output of a test run.