NOTE: It is recommended to use Python virtual environment to work with the repository
-
OPTIONAL Create and activate Python virtual environment:
python3 -m pip install virtualenv
python3 -m virtualenv venv
source venv/bin/activate
- Install required packages:
pip install -r requirements.txt
pip install -r requirements_dev.txt
- Initialize the OpenVINO environment:
source ~/intel/openvino_2022/setupvars.sh
- Run the script to download models for tests:
python tests/download_models.py --config tests/data/IRv10_models.json
python tests/download_models.py --config tests/data/onnx_models.json
- Set environment variables to the downloaded models directory:
export MODELS_PATH=tests/data/models
- Run the tests
pytest --disable-warnings -r A