You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: library/docs/source/guide/get_started/installation.rst
+8-11Lines changed: 8 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,34 +141,32 @@ Example output:
141
141
Run tests
142
142
*********
143
143
144
-
To run tests locally, install development dependencies:
144
+
To run tests locally, just call `pytest`. `uv` will automatically sync all necessary dependencies.
145
145
146
146
.. code-block:: shell
147
147
148
-
uv pip install -e '.[dev]'
149
-
pytest tests/
148
+
uv run pytest tests
150
149
151
-
To run integration tests using `tox`:
150
+
To run integration tests:
152
151
153
152
.. code-block:: shell
154
153
155
-
uv tool install tox --with tox-uv
156
-
tox -e integration-test-all
154
+
uv run pytest tests/integration
157
155
158
156
.. note::
159
157
160
-
The first time `tox` is run, it will create virtual environments and install all required dependencies.
161
-
This may take several minutes before the actual tests begin.
158
+
Integration tests may be slow because they involve downloading datasets and simulating training rounds.
159
+
It is recommended to run them on a platform with GPU/XPU support.
162
160
163
161
***************
164
162
Troubleshooting
165
163
***************
166
164
167
-
1. If you encounter issues with `uv pip`, update uv:
165
+
1. If you encounter issues with `uv`, update it:
168
166
169
167
.. code-block:: shell
170
168
171
-
pip install --upgrade uv
169
+
uv self update
172
170
173
171
2. If you're having issues installing `torch` or `mmcv`, check CUDA compatibility with your PyTorch version.
174
172
Update your CUDA toolkit and drivers if needed. See `CUDA 11.8 Installer <https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=runfile_local>`_.
@@ -178,7 +176,6 @@ Update your CUDA toolkit and drivers if needed. See `CUDA 11.8 Installer <https:
Copy file name to clipboardExpand all lines: library/docs/source/guide/tutorials/base/export.rst
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,11 @@ Export
12
12
13
13
"export" method should be implemented within a framework engine like OTXEngine to be able to export the model. Optimization and validation steps are required to use OVEngine.
14
14
15
-
1. Activate the virtual environment
16
-
created in the previous step.
15
+
1. Activate the virtual environment created in the previous step.
17
16
18
17
.. code-block:: shell
19
18
20
-
source .otx/bin/activate
21
-
# or by this line, if you created an environment, using tox
22
-
. venv/otx/bin/activate
19
+
source .venv/bin/activate
23
20
24
21
2. ``otx export`` returns an ``.onnx``, ``openvino.xml(.bin)`` and ``.zip``
25
22
exportable code with demo depending on the export type passed to CLI or API.
0 commit comments