This tutorial explains how to convert a CRNN model to Intermediate Representation (IR).
On GitHub*, you can find several public versions of TensorFlow* CRNN model implementation. This tutorial explains how to convert the model from the https://github.com/MaybeShewill-CV/CRNN_Tensorflow repository to IR. If you have another implementation of CRNN model, you can convert it to IR in similar way: you need to get inference graph and run the Model Optimizer on it.
To convert this model to the IR:
Step 1. Clone this GitHub repository and checkout the commit:
Step 2. Train the model using framework or use the pretrained checkpoint provided in this repository.
Step 3. Create an inference graph:
CRNN_Tensorflow directory with the cloned repository:
CRNN_Tensorflow folder to
/path/to/CRNN_Tensorflow/ to the
PYTHONPATH environment variable in settings.
tools/demo_shadownet.py script. After
saver.restore(sess=sess, save_path=weights_path) line, add the following code:
--weights_path parameter with a path to your checkpoint.
CRNN_Tensorflow directory, you will find the inference CRNN graph
frozen_graph.pb. You can use this graph with the OpenVINO™ toolkit to convert the model into IR and run inference.
Step 4. Convert the model into IR: