Set Up Computer Vision Package for SAP AI Core
- How to install Python packages for computer vision AI pipelines
- How to execute Python code in Jupyter
- How to connect to SAP AI Core using the SAP AI Core SDK
Prerequisites
- You have completed the Create Your First Machine Learning Project using SAP AI Core tutorial series
- You have provisioned SAP AI Core
- You have set up your Git repository with SAP AI Core.
- You have created Docker registry secret in SAP AI Core
- You have registered your object store secret in SAP AI Core
Pre-read
The computer vision package provides a fast and easy way to train computer vision models and set up a serving infrastructure. The computer vision package works with the SAP AI Core SDK (ai-core-sdk) to provide a command line interface to create SAP AI Core templates for training and serving.
The package bundles capabilities of detectron2 (library for object detection and image segmentation) with extensions such as image classification, feature extraction and model serving.
In this tutorial, you first create a Python virtual environment and install Python packages in the Python virtual environment. You then link the virtual environment to a Jupyter notebook so that you can run computer vision pipelines on SAP AI Core from a Jupyter notebook.
After set up, you can train and serve an AI model for object detection. The aim of the model is to recognise objects (numbers) on electricity meter readings. See the related computer vision tutorials for training and serving an object detection model.