Skip to content

Commit

Permalink
[openvino_dev] Added new extra requirements for diff tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
RaguzovaTatyana committed Sep 1, 2023
1 parent 20bf7ae commit c04a21b
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/openvino_dev/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ set(WHEEL_BUILD "${OpenVINO_VERSION_BUILD}" CACHE STRING "Build number of this r
ov_cpack_add_component(${OV_CPACK_COMP_OPENVINO_DEV_REQ_FILES} HIDDEN)

set(REQUIREMENTS_IN "${CMAKE_CURRENT_SOURCE_DIR}/requirements_dev.txt.in")
set(EXTRAS_LIST _ caffe kaldi mxnet onnx pytorch tensorflow tensorflow2)
set(EXTRAS_LIST _ caffe kaldi mxnet onnx pytorch tensorflow tensorflow2 nlp vision)

foreach(EXTRAS IN LISTS EXTRAS_LIST)
if(EXTRAS STREQUAL "_")
Expand Down
1 change: 1 addition & 0 deletions tools/openvino_dev/requirements_.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-c ../constraints.txt
8 changes: 8 additions & 0 deletions tools/openvino_dev/requirements_nlp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-c ../constraints.txt
tensorflow<2.13.0
defusedxml
protobuf
PyYAML
requests
tqdm
urllib3
1 change: 1 addition & 0 deletions tools/openvino_dev/requirements_sr.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-c ../constraints.txt
9 changes: 9 additions & 0 deletions tools/openvino_dev/requirements_vision.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-c ../constraints.txt
tensorflow<2.13.0
torchvision
opencv-python
protobuf
PyYAML
requests
tqdm
urllib3
4 changes: 4 additions & 0 deletions tools/openvino_dev/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ def concat_files(output_file, input_files):
'console_scripts': [],
},
install_requires=read_requirements(SCRIPT_DIR / 'requirements.txt'),
extras_require={
'nlp': read_requirements(SCRIPT_DIR / 'requirements_nlp.txt'),
'vision': read_requirements(SCRIPT_DIR / 'requirements_vision.txt'),
},
packages=find_namespace_packages(where=str(SRC_DIR)),
package_dir={'': str(SRC_DIR)},
)

0 comments on commit c04a21b

Please sign in to comment.