Skip to content

AzureML

Samet Akcay edited this page Mar 29, 2023 · 2 revisions

Instructions to Run the Notebooks in Azure ML Studio

The steps below assume that you have an Azure account and access to the Azure ML Studio. The entire one-time setup process may take up to 20 minutes.

Step 0: Add a Compute Instance

In Azure ML Studio, add a compute instance and pick any CPU-based instance (No GPU required, but we recommend at least 4 CPU cores and 8GB of RAM).
azure1

Once the compute instance is running, open the terminal and then run Steps 1-8 below. azure2a

Step 1: Create a Conda Environment

conda create --name anomalib_env python=3.8 -y

Step 2: Activate the Environment

conda activate anomalib_env

Step 3: Clone Anomalib

git clone https://github.com/openvinotoolkit/anomalib.git

Step 4: Change Directory to anomalib

cd anomalib

Step 5: Upgrade pip and Install Requirements

python -m pip install --upgrade pip
pip install .[full]

Step 6: Add anomalib_env to PATH

set PATH="/anaconda/envs/anomalib_env/bin;%PATH%"

Step 7: Run the Notebooks!

To run the notebooks, click on Notebooks and refresh your Files:
azure3a

Note: Please also make sure you are using the 'anomalib_env' environment (not Python 3). That's all :) Happy coding.