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: docs/source/guide/explanation/algorithms/action/action_classification.rst
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,21 +27,23 @@ Refer to our tutorial for more information on how to train, validate, and optimi
27
27
Models
28
28
******
29
29
30
-
We support `X3D <https://arxiv.org/abs/2004.04730>`_ for action classification. X3D is a deep learning model that was proposed in the paper "X3D: Expanding Architectures for Efficient Video Recognition" by Christoph Feichtenhofer. The model is an extension of the popular 2D convolutional neural network (CNN) architectures to the 3D domain, allowing it to efficiently process spatiotemporal information in videos.
30
+
Currently OpenVINO™ Training Extensions supports `X3D <https://arxiv.org/abs/2004.04730>`_ and `MoViNet <https://arxiv.org/pdf/2103.11511.pdf>`_ for action classification.
31
31
32
-
Currenly OpenVINO™ Training Extensions supports X3D-S model with below template:
All commands will be run on the X3D model. It's a light model, that achieves competitive accuracy while keeping the inference fast.
144
144
@@ -254,7 +254,7 @@ Optimization
254
254
*************
255
255
256
256
1. You can further optimize the model with ``otx optimize``.
257
-
Currently, only POT is supported for action classsification. NNCF will be supported in near future.
257
+
Currently, quantization jobs that include POT is supported for X3D template. MoViNet will be supported in near future.
258
258
Refer to :doc:`optimization explanation <../../../explanation/additional_features/models_optimization>` section for more details on model optimization.
259
259
260
260
2. Example command for optimizing
@@ -275,4 +275,4 @@ Keep in mind that POT will take some time (generally less than NNCF optimization
275
275
efficient model representation ready-to-use action classification model.
276
276
277
277
The following tutorials provide further steps on how to :doc:`deploy <../deploy>` and use your model in the :doc:`demonstration mode <../demo>` and visualize results.
278
-
The examples are provided with an object detection model, but it is easy to apply them for action classification by substituting the object detection model with classification one.
278
+
The examples are provided with an object detection model, but it is easy to apply them for action classification by substituting the object detection model with classification one.
Copy file name to clipboardExpand all lines: docs/source/guide/tutorials/base/how_to_train/action_detection.rst
+71Lines changed: 71 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,3 +153,74 @@ We will get a similar to this validation output after some validation time (abou
153
153
.. note::
154
154
155
155
Currently we don't support export and optimize task in action detection. We will support these features very near future.
156
+
157
+
158
+
*********
159
+
Export
160
+
*********
161
+
162
+
1. ``otx export`` exports a trained Pytorch `.pth` model to the OpenVINO™ Intermediate Representation (IR) format.
163
+
It allows running the model on the Intel hardware much more efficiently, especially on the CPU. Also, the resulting IR model is required to run POT optimization. IR model consists of two files: ``openvino.xml`` for weights and ``openvino.bin`` for architecture.
164
+
165
+
2. Run the command line below to export the trained model
166
+
and save the exported model to the ``openvino_models`` folder.
167
+
168
+
.. code-block::
169
+
170
+
(otx) ...$ otx export
171
+
172
+
2023-03-24 15:03:35,993 - mmdeploy - INFO - Export PyTorch model to ONNX: /tmp/OTX-task-ffw8llin/openvino.onnx.
173
+
2023-03-24 15:03:44,450 - mmdeploy - INFO - Args for Model Optimizer: mo --input_model="/tmp/OTX-task-ffw8llin/openvino.onnx" --output_dir="/tmp/OTX-task-ffw8llin/" --output="bboxes,labels" --input="input" --input_shape="[1, 3, 32, 256, 256]" --mean_values="[123.675, 116.28, 103.53]" --scale_values="[58.395, 57.12, 57.375]" --source_layout=bctwh
174
+
2023-03-24 15:03:46,707 - mmdeploy - INFO - [ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
175
+
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html
176
+
[ SUCCESS ] Generated IR version 11 model.
177
+
[ SUCCESS ] XML file: /tmp/OTX-task-ffw8llin/openvino.xml
178
+
[ SUCCESS ] BIN file: /tmp/OTX-task-ffw8llin/openvino.bin
Unfortunately, openvino has trouble in export from ONNX file, which comes from torch 1.13.
200
+
You can get proper openvino IR when you downgrade torch version to 1.12.1 when exporting.
201
+
202
+
203
+
*************
204
+
Optimization
205
+
*************
206
+
207
+
1. You can further optimize the model with ``otx optimize``.
208
+
Currently, only POT is supported for action detection. NNCF will be supported in near future.
209
+
Refer to :doc:`optimization explanation <../../../explanation/additional_features/models_optimization>` section for more details on model optimization.
0 commit comments