I am new to deep learning and I want to use a pretrained (EAST) model to serve from the AI Platform Serving, I have these files made available by the developer:
- model.ckpt-49491.data-00000-of-00001
- checkpoint
- model.ckpt-49491.index
- model.ckpt-49491.meta
I want to convert it into the TensorFlow .pb
format. Is there a way to do it? I have taken the model from here
The full code is available here.
I have looked up here and it shows the following code to convert it:
From tensorflow/models/research/
INPUT_TYPE=image_tensor
PIPELINE_CONFIG_PATH={path to pipeline config file}
TRAINED_CKPT_PREFIX={path to model.ckpt}
EXPORT_DIR={path to folder that will be used for export}
python object_detection/export_inference_graph.py \
--input_type=${INPUT_TYPE} \
--pipeline_config_path=${PIPELINE_CONFIG_PATH} \
--trained_checkpoint_prefix=${TRAINED_CKPT_PREFIX} \
--output_directory=${EXPORT_DIR}
I am unable to figure out what value to pass:
- INPUT_TYPE
- PIPELINE_CONFIG_PATH.