From 315cc80be7ca88c104712dc0cb2f3720a04ea460 Mon Sep 17 00:00:00 2001 From: Karol Blaszczak Date: Wed, 10 Apr 2024 12:13:43 +0200 Subject: [PATCH] [DOCS] old fix for yolo article 22.3 (#23934) --- .../tf_specific/Convert_YOLO_From_Tensorflow.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_YOLO_From_Tensorflow.md b/docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_YOLO_From_Tensorflow.md index 648c15df7fa..2d82b1c524d 100644 --- a/docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_YOLO_From_Tensorflow.md +++ b/docs/MO_DG/prepare_model/convert_model/tf_specific/Convert_YOLO_From_Tensorflow.md @@ -39,13 +39,20 @@ This section explains how to convert the YOLOv4 Keras model from the [repository python keras-YOLOv3-model-set/tools/model_converter/convert.py /yolov4-tiny.cfg /yolov4-tiny.weights ``` -4. Run Model Optimizer to converter the model from the TensorFlow 2 format to an IR: +4. Run Model Optimizer to convert the model from the TensorFlow 2 format to an IR: > **NOTE**: Before you run the conversion, make sure you have installed all the Model Optimizer dependencies for TensorFlow 2. > ```sh > mo --saved_model_dir yolov4 --output_dir models/IRs --input_shape [1,608,608,3] --model_name yolov4 > ``` +If you get errors, you may need to add the additional step to divide the input by 255: +```sh +--scale_values=image_input[255] +``` + + + ## Converting YOLOv3 Model to the OpenVINO format There are several public versions of TensorFlow YOLOv3 model implementation available on GitHub. This section explains how to convert YOLOv3 model from