openvino/tests/e2e_tests
Jacek Pawlak 239466ca5d
copyright year update (#23370)
New PR due to merge
conflicts(https://github.com/openvinotoolkit/openvino/pull/22917)

Updated the copyright year from 2018-2023 to 2018-2024 in all openvino
files

Ref. to script: CVS-101144

Command used:
```bash
git grep -lz '2018-2023 Intel Corporation' | xargs -0 sed -i '' -e 's/2018-2023 Intel Corporation/2018-2024 Intel Corporation/g'
```
2024-03-14 09:37:02 +00:00
..
common E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
pipelines E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
test_utils E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
CMakeLists.txt copyright year update (#23370) 2024-03-14 09:37:02 +00:00
README.md E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
__init__.py E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
base_test_rules.yml E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
collect_refs.py E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
config.py E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
conftest.py E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
env_config_local.yml E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
pytest.ini E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
requirements.txt E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
reshape_test_rules.yml E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
test_base.py E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00
test_config_local.yml E2E open-sourced (#20429) 2024-03-05 16:35:45 +00:00

README.md

End-to-end Tests User Documentation

This folder contains a code to run end-to-end validation of OpenVINO on real models of different frameworks (PyTorch, TensorFlow, and ONNX)

The documentation provides necessary information about environment setup for e2e validation run, adding new model to the validation, and instructions to launch validation.

The following steps assume that your current working directory is: tests/e2e_tests

Environment preparation:

  • Install Python modules required for tests:
    pip3 install -r requirements.txt 
    

Add model from TensorFlow Hub repo to end-to-end validation:

To add new test for model from TF Hub repo just add new line into pipelines/production/tf_hub/precommit.yml This line should contain comma separated model name and its link

movenet/singlepose/lightning,https://www.kaggle.com/models/google/movenet/frameworks/tensorFlow2/variations/singlepose-lightning/versions/4

Main entry-point

There is one main testing entry-point which is responsible for test run - test_base.py. This script performs the following actions:

  1. Loads model from its source
  2. Infers original model through framework
  3. Converts original model through OVC convert model
  4. Infers converted model through OpenVINO
  5. Provides results of element-wise comparison of framework and OpenVINO inference

Launch tests

test_base.py is the main script to run end-to-end tests. Run all end-to-end tests in pipelines/:

pytest test_base.py

test_base.py options:

  • --modules=MODULES [MODULES ...] - Paths to tests.
  • -k TESTNAME [TESTNAME ...]- Test names.
  • -s - Step-by-step logging.

Example:

pytest test_base.py -s --modules=pipelines/production/tf_hub

For full information on pytest options, run pytest --help or see the documentation