Skip to content

Commit

Permalink
[DOCS] old fix for yolo article 22.3 (#23934)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblaszczak-intel authored Apr 10, 2024
1 parent 4b4570d commit 315cc80
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <path_to_cfg_file>/yolov4-tiny.cfg <path_to_weights>/yolov4-tiny.weights <saved_model_dir>
```

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]
```



## <a name="yolov3-to-ir"></a>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
Expand Down

0 comments on commit 315cc80

Please sign in to comment.