Use the instructions below to install the dependencies required to run the notebooks.
Software Requirements:
- Linux* system (validated on Ubuntu* 20.04/22.04 LTS)
- Python3 (3.8, 3.9, or 3.10), Pip/Conda and Virtualenv
- git
-
Install Intel® Transfer Learning Tool using any of the installation options in the Get Started Guide. This is required for the Intel Transfer Learning Tool tutorial notebooks, E2E notebooks, and performance comparison. You can skip this step if you are only running the native framework notebooks.
-
Clone the GitHub repo if you haven't done this in step 1
git clone https://github.com/Intel/transfer-learning.git cd transfer-learning
-
Activate the virtualenv or conda environment used to install Intel Transfer Learning Tool, then from inside the activated environment, run these steps:
pip install --upgrade pip pip install -r notebooks/requirements.txt
-
Set environment variables for the path to the dataset folder and an output directory. The dataset and output directories can be empty. The notebook will download the dataset to the dataset directory, if it is empty. Subsequent runs will reuse the dataset. If the
DATASET_DIR
andOUTPUT_DIR
variables are not defined, the notebooks will default to use~/dataset
and~/output
.export DATASET_DIR=~/dataset export OUTPUT_DIR=~/output mkdir -p $DATASET_DIR mkdir -p $OUTPUT_DIR
-
Navigate to the notebook directory in your clone of the Transfer Learning repo, and then start the notebook server:
cd notebooks jupyter notebook --port 8888
-
Copy and paste the URL from the terminal to your browser to view and run the notebooks.
Once you have the environment and dependencies set up, see the list of available notebooks.