Healthcare: Upload and Deploy
How to upload and deploy a computer vision model focused on computer vision healthcare to Wallaroo.
This tutorial and the assets can be downloaded as part of the Wallaroo Workshops repository.
This tutorial series will demonstrate the following:
This tutorial assumes that users have installed the Wallaroo SDK or are running these tutorials from within their Wallaroo instance’s JupyterHub service.
This demonstration should be run within a Wallaroo JupyterHub instance for best results.
The included OpenCV class is included in this demonstration as CVDemoUtils.py
, and requires the following dependencies:
To install these dependencies in the Wallaroo JupyterHub service, use the following commands from a terminal shell via the following procedure:
Launch the JupyterHub Service within the Wallaroo install.
Select File->New->Terminal.
Enter the following:
sudo apt-get update
sudo apt-get install ffmpeg libsm6 libxext6 -y
For users using the Wallaroo SDK to connect with a remote Wallaroo instance, the following commands will install the required dependancies:
For Linux users, this can be installed with:
sudo apt-get update
sudo apt-get install ffmpeg libsm6 libxext6 -y
MacOS users can prepare their environments using a package manager such as Brew with the following:
brew install ffmpeg libsm libxext
These can be installed by running the command below in the Wallaroo JupyterHub service. Note the use of pip install torch --no-cache-dir
for low memory environments.
!pip install torchvision==0.15.2
!pip install torch==2.0.1 --no-cache-dir
!pip install opencv-python==4.7.0.72
!pip install onnx==1.12.0
!pip install onnxruntime==1.15.0
!pip install imutils==0.5.4
!pip install pytz
!pip install ipywidgets==8.0.6
!pip install patchify==0.2.3
!pip install tifffile==2023.4.12
!pip install piexif==1.1.3
The rest of the tutorials will rely on these libraries and applications, so finish their installation before running the tutorials in this series.
In order for the wallaroo tutorial notebooks to run properly, the videos directory must contain these models in the models directory.
To download the Wallaroo Computer Vision models, use the following link:
https://storage.googleapis.com/wallaroo-public-data/cv-demo-models/cv-retail-models.zip
Unzip the contents into the directory models
.
How to upload and deploy a computer vision model focused on computer vision healthcare to Wallaroo.
How to use Wallaroo to set data connections within Wallaroo for inferencing and other use cases.
How to use Wallaroo to deploy a computer vision healthcare model on edge devices for inferences.