-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools/downloader: align namespace #2723
tools/downloader: align namespace #2723
Conversation
@nignatovsky we probably need to make change in jenkins job to replace direct call to downloader.py with install it and call to omz_downloader ? @jkamelin what do you think? |
I agree |
Yes, I will make necessary changes in the Downloader job |
It is very welcome that the names are now aligned between pip and other installers! The README still seems to assume that a user needs to install open model zoo. Could it be clarified that that step is not necessary if a user already installed OpenVINO with pip, or OMZ tools with IRC? I find it useful to refer to the OMZ tools README for usage info about the tools (and people may arrive their when searching for how to use, say, Also, not essential but IMO it would be nicer if the README was not under |
tools/downloader/README.md
Outdated
sudo apt-get install python3 python3-dev python3-setuptools python3-pip | ||
``` | ||
|
||
2. Install the tools with the following command: | ||
|
||
```sh | ||
python3 setup.py build | ||
python3 setup.py install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These instructions are for Ubuntu only. On Windows, if you install Python with the installer from python.org (the recommended way to install Python on Windows), setuptools and pip are included (though they are not always at the latest version). But if you type python3
in a command prompt, you get redirected to the Windows Store to install Python. So on Windows you have to type python
, but on Ubuntu, you have to type python3
.
This is how the PyPI openvino-dev install docs do this: https://github.com/openvinotoolkit/openvino/blob/master/docs/install_guides/pypi-openvino-dev.md
For the notebooks we recommend a virtualenv and have different headings https://github.com/openvinotoolkit/openvino_notebooks/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed command to python
, added note about the difference on Linux
Added note that OMZ tools can be installed as a part of OpenVINO and provided installation steps are used to install from source.
Renamed folder |
omz_info_dumper = open_model_zoo.model_tools.info_dumper:main | ||
omz_quantizer = open_model_zoo.model_tools.quantizer:main | ||
omz_converter = openvino.model_zoo.omz_converter:main | ||
omz_data_downloader = openvino.model_zoo.omz_data_downloader:main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, do we need to update documentation for openvino-dev package about a new tool omz_data_downloader?
https://github.com/openvinotoolkit/openvino/blob/master/docs/install_guides/pypi-openvino-dev.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
@jkamelin precommit check failed |
@nignatovsky note, this PR also affect Demo validation job |
What happens if a user installed OMZ according to the installation instructions and then a few months later installs openvino-dev, with a newer release? Is there a risk that their |
If we consider the options to install both the packages, this one and openvino-dev, last installed overwrites aliases like omz_downloader. |
Jenkins please retry a build |
BTW, why scripts have name |
@ilya-lavrenov names omz_downloader, omz_converter maintained for consistency with openvino-dev PyPi package in 2021.4. They will be called from command line in openvino-dev environment as omz_downloader. Names like simple downloader will look to generic in this case. @jkamelin please rebase your branch |
14:16:05 models/public/yolox-tiny/README.md: URL reference "../../../tools/downloader/README.md" target does not exist or is not a file |
Jenkins please retry a build |
This PR is to align OMZ tools namespace in OpenVINO Python environment. The tools will now be located under openvino.model_zoo namespace and accessible through command line as omz_downloader, omz_converter, omz_quantizer, omz_data_downloader and omz_info_dumper commands, just like it is in openvino-dev PyPi package starting from OpenVINO 2021.4 release