[DOCS] old fix for yolo article master (#23939)

This commit is contained in:
Karol Blaszczak 2024-04-10 12:13:23 +02:00 committed by GitHub
parent 1f1fc92d1b
commit b697c485ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -58,12 +58,19 @@ This section explains how to convert the YOLOv4 Keras model from the `repository
python keras-YOLOv3-model-set/tools/model_converter/convert.py <path_to_cfg_file>/yolov4-tiny.cfg <path_to_weights>/yolov4-tiny.weights <saved_model_dir>
4. Run model conversion for from the TensorFlow 2 format to an IR:
4. Run model conversion from the TensorFlow 2 to an IR format:
.. note::
Before you run the conversion, make sure you have installed all the model conversion API dependencies for TensorFlow 2.
If you get errors, you may need to add the additional step to divide the input by 255:
.. code-block:: sh
--scale_values=image_input[255]
.. code-block:: sh
mo --saved_model_dir yolov4 --output_dir models/IRs --input_shape [1,608,608,3] --model_name yolov4