Skip to content

Commit

Permalink
[TVM] Add support TVM in accuracy checker (#468)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentina <valentina-kustikova@users.noreply.github.com>
  • Loading branch information
FenixFly and valentina-kustikova authored Dec 24, 2023
1 parent 950ea37 commit f2c66c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/accuracy_checker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
На данный момент скрипт поддерживает полный список фреймворков,
которые поддерживаются AccuracyChecker.

Наряду с этим, для поддержки валидации моделей, запускаемых средствами TVM, можно использовать стороннее
расширение AccuracyChecker, которое доступно по [ссылке][open-model-zoo-tvm]. Для запуска необходимо
сначала установить Python-пакет `openvino-dev`, затем собрать приложение `accuracy_check` из репозитория
командой `pip install <open_model_zoo_tvm_path>/tools/accuracy_checker/`.

### Алгоритм работы скрипта

Скрипт принимает на вход конфигурации тестов. Описание конфигурации
Expand Down Expand Up @@ -75,3 +80,4 @@ python3 accuracy_checker.py \
[accuracy-checker]: https://docs.openvino.ai/latest/omz_tools_accuracy_checker.html
[omz-ac-metrics]: https://github.com/openvinotoolkit/open_model_zoo/blob/2022.2.0/tools/accuracy_checker/openvino/tools/accuracy_checker/metrics/README.md
[omz-ac-definitions]: https://github.com/openvinotoolkit/open_model_zoo/blob/2022.2.0/tools/accuracy_checker/dataset_definitions.yml
[open-model-zoo-tvm]: https://github.com/FenixFly/open_model_zoo_tvm
2 changes: 2 additions & 0 deletions src/accuracy_checker/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def __convert_framework_from_config(framework):
return 'OpenCV'
elif framework == 'pytorch':
return 'PyTorch'
elif framework == 'tvm':
return 'TVM'
else:
return 'Unsupported framework'

Expand Down
2 changes: 1 addition & 1 deletion src/accuracy_checker/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, log, executor, test):
self._status = None
self.supported_frameworks = {'OpenVINO DLDT': 'dlsdk', 'Caffe': 'caffe', 'TensorFlow': 'tf',
'TensorFlow_Lite': 'tf_lite', 'MXNet': 'mxnet', 'OpenCV': 'opencv',
'PyTorch': 'pytorch'}
'PyTorch': 'pytorch', 'TVM': 'tvm'}
self.csv_name = executor.get_csv_file()

@staticmethod
Expand Down

0 comments on commit f2c66c8

Please sign in to comment.