In this post, you will deploy an image classification application, upload images to IBM Cloud Object Storage and then classify the uploaded images using a pre-defined MobileNet Tensorflow.js model without any training. The images are classified with labels from the ImageNet database.
Clone the repository
On your machine, launch a terminal or command prompt and run the below commands to clone the GitHub repository and then move it to the cloned repo folder:
If you plan to use public Docker Hub, run the below command to build and push three container images — frontend, backend and backend-job respectively. Replace <DOCKER_ACCOUNT_NAME> with your own Docker account name: ./deploy.sh <DOCKER_ACCOUNT_NAME>.
If you don’t wish to build your own container images, you can use the pre-built container images — vidyasagarmsc/*. For example: docker pull vidyasagarmsc/frontend.
Use the container images with the solution tutorial
Follow the steps in the solution tutorial and use this code sample to learn about IBM Cloud Code Engine by deploying an image classification application.
Use the container images built from this code sample. Replace ibmcom/* with <ACCOUNT_NAME>/*.
Instead of uploading a text file, upload an image (.jpeg, .png) to COS. For sample images, check the images folder in this repo.
You can find the sample images to test the classification under the output folder of the repository:
Questions and feedback
If you have feedback, suggestions or questions about this post, please reach out to me on Twitter (@VidyasagarMSC) or use the feedback button on the tutorial to report a problem on its content. You can also open issues.
The tutorials section has a feedback form on the side where you can comment on the content. If you have suggestions on the existing tutorials or ideas for future additions, please submit your feedback.