我通过错误运行应用程序后尝试运行Azure语音(Here)。
Connection EstablishmentErrorEvent和状态代码1006
以下是错误。
import tensorflow as tf
slim = tf.contrib.slim
from inception_resnet_v2 import *
#Well, since you're using resnet_v2, this may be equivalent to you.
checkpoint_file = 'inception_resnet_v2_2016_08_30.ckpt'
sample_images = ['dog.jpg', 'panda.jpg']
#Load the model
sess = tf.Session()
arg_scope = inception_resnet_v2_arg_scope()
with slim.arg_scope(arg_scope):
logits, end_points = inception_resnet_v2(input_tensor, is_training=False)
#With this, you could consider the op_variable with the following
predict_values, logit_values = sess.run([end_points['Predictions'], logits], feed_dict={input_tensor: im})
#Here im is the normalized numpy array of the image pixels.
为了更好地理解,我将逐步介绍如何运行项目。
步骤3至5已在README文件中。 第五步给出隧道URL以运行应用程序。 在单击并上传音频文件后,它会通过网络控制台中显示的错误进行显示。