[英]Implementing TensorFlow Attention OCR on iOS
我已經成功地訓練(使用Inception V3權重作為初始化)此處描述的Attention OCR模型: https : //github.com/tensorflow/models/tree/master/attention_ocr並將生成的檢查點文件凍結為圖形。 如何在iOS上使用C ++ API來實現此網絡?
先感謝您。
正如其他人建議你可以使用一些現有的iOS演示( 1 , 2 )為起點,但要密切注意以下細節:
要獲取輸入/輸出張量的名稱,您可以簡單地打印它們,例如在導出腳本中的某個位置:
data_images = tf.placeholder(dtype=tf.float32, shape=[batch_size, height, width, channels], name='normalized_input_images') endpoints = model.create_base(data_images, labels_one_hot=None) print(data_images, endpoints.predicted_chars, endpoints.predicted_scores)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.