Align folder structure for Benchmark Tool (#6625)
* openvino namespace for benchmark tool * change readme wording * remove duplicated README.md
This commit is contained in:
committed by
GitHub
parent
4373b0cb7d
commit
6e14890972
6
tools/.gitignore
vendored
6
tools/.gitignore
vendored
@@ -1,2 +1,6 @@
|
|||||||
openvino.tools.benchmark.log
|
*.log
|
||||||
|
*.egg-info/
|
||||||
|
*.egg
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ if(ENABLE_PYTHON)
|
|||||||
# creates a copy inside bin directory for developers to have ability running python benchmark_app
|
# creates a copy inside bin directory for developers to have ability running python benchmark_app
|
||||||
add_custom_target(${TARGET_NAME} ALL
|
add_custom_target(${TARGET_NAME} ALL
|
||||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${PYTHON_BRIDGE_OUTPUT_DIRECTORY}/tools
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${PYTHON_BRIDGE_OUTPUT_DIRECTORY}/tools
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${OpenVINO_SOURCE_DIR}/tools/benchmark ${PYTHON_BRIDGE_OUTPUT_DIRECTORY}/tools/benchmark
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${OpenVINO_SOURCE_DIR}/tools/benchmark_tool/openvino/tools/benchmark ${PYTHON_BRIDGE_OUTPUT_DIRECTORY}/tools/benchmark
|
||||||
)
|
)
|
||||||
|
|
||||||
ie_cpack_add_component(python_tools_${PYTHON_VERSION})
|
ie_cpack_add_component(python_tools_${PYTHON_VERSION})
|
||||||
@@ -37,14 +37,10 @@ if(ENABLE_PYTHON)
|
|||||||
DESTINATION deployment_tools/tools
|
DESTINATION deployment_tools/tools
|
||||||
COMPONENT python_tools)
|
COMPONENT python_tools)
|
||||||
|
|
||||||
install(FILES README.md
|
install(DIRECTORY benchmark_tool/openvino/tools/benchmark
|
||||||
DESTINATION python/${PYTHON_VERSION}/openvino/tools
|
|
||||||
COMPONENT python_tools_${PYTHON_VERSION})
|
|
||||||
|
|
||||||
install(DIRECTORY benchmark
|
|
||||||
DESTINATION python/${PYTHON_VERSION}/openvino/tools
|
DESTINATION python/${PYTHON_VERSION}/openvino/tools
|
||||||
USE_SOURCE_PERMISSIONS
|
USE_SOURCE_PERMISSIONS
|
||||||
COMPONENT python_tools_${PYTHON_VERSION})
|
COMPONENT python_tools_${PYTHON_VERSION})
|
||||||
|
|
||||||
ie_cpack(python_tools python_tools_${PYTHON_VERSION})
|
ie_cpack(python_tools python_tools_${PYTHON_VERSION})
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
# OpenVINO™ Python* openvino.tools package
|
# OpenVINO™ Python* development tools
|
||||||
|
|
||||||
## General
|
## General
|
||||||
`openvino.tools` package includes:
|
OpenVINO includes following tools:
|
||||||
* openvino.tools.benchmark
|
* openvino.tools.benchmark
|
||||||
|
|
||||||
Please, refer to https://docs.openvinotoolkit.org for details.
|
Please, refer to https://docs.openvinotoolkit.org for details.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
Choose necessary Python\* version and define `PYTHONPATH` environment variable.
|
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
@@ -15,11 +14,12 @@ Install prerequisites first:
|
|||||||
|
|
||||||
#### 1. Python
|
#### 1. Python
|
||||||
|
|
||||||
**openvino.tools** is **Python 3** library. Install it first:
|
Install **Python** prerequisites:
|
||||||
|
|
||||||
- [Python3][python3]
|
- [Python3][python3]
|
||||||
- [setuptools][setuptools]
|
- [setuptools][setuptools]
|
||||||
|
|
||||||
|
Run following command to install these prerequisites on Ubuntu*:
|
||||||
```bash
|
```bash
|
||||||
sudo apt-get install python3 python3-dev python3-setuptools python3-pip
|
sudo apt-get install python3 python3-dev python3-setuptools python3-pip
|
||||||
```
|
```
|
||||||
@@ -49,13 +49,17 @@ Virtual environment can be deactivated using command
|
|||||||
deactivate
|
deactivate
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 2. Install package prerequisites
|
#### 2. Install packages
|
||||||
|
|
||||||
The next step is installing package prerequisites.
|
You can install tools by specifying path to tool with `setup.py` in `pip install` command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python3 -m pip install -r benchmark/requirements.txt
|
python3 -m pip install <tools_folder>/
|
||||||
```
|
```
|
||||||
|
For example, to install Benchmark Tool, use the following command:
|
||||||
|
```bash
|
||||||
|
python3 -m pip install benchmark_tool/
|
||||||
|
```
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
|
|||||||
@@ -10,18 +10,15 @@ $ python setup.py sdist bdist_wheel
|
|||||||
"""
|
"""
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
with open('README.md', 'r', encoding='utf-8') as f:
|
with open('openvino/tools/benchmark/README.md', 'r', encoding='utf-8') as f:
|
||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
|
|
||||||
with open('benchmark/requirements.txt') as f:
|
with open('openvino/tools/benchmark/requirements.txt') as f:
|
||||||
required = f.read().splitlines()
|
required = f.read().splitlines()
|
||||||
required.extend(['openvino'])
|
required.extend(['openvino'])
|
||||||
|
|
||||||
pkgs = find_packages()
|
|
||||||
NAMESPACE = 'openvino.tools'
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='openvino-tools',
|
name='benchmark_tool',
|
||||||
version='0.0.0',
|
version='0.0.0',
|
||||||
author='Intel® Corporation',
|
author='Intel® Corporation',
|
||||||
license='OSI Approved :: Apache Software License',
|
license='OSI Approved :: Apache Software License',
|
||||||
@@ -39,9 +36,7 @@ setup(
|
|||||||
'OSI Approved :: Apache Software License',
|
'OSI Approved :: Apache Software License',
|
||||||
'Operating System :: OS Independent',
|
'Operating System :: OS Independent',
|
||||||
],
|
],
|
||||||
package_dir={''.join((NAMESPACE, '.', pkg)) : pkg.replace('.', '/')
|
packages=find_packages(),
|
||||||
for pkg in pkgs},
|
|
||||||
packages=[''.join((NAMESPACE, '.', pkg)) for pkg in pkgs],
|
|
||||||
install_requires=required,
|
install_requires=required,
|
||||||
python_requires='>=3.6',
|
python_requires='>=3.6',
|
||||||
)
|
)
|
||||||
Reference in New Issue
Block a user