We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5025dd5 + 0cd1dfd commit c5216c3Copy full SHA for c5216c3
modules/ImageClassifierService/app/predict.py
@@ -13,7 +13,6 @@
13
filename = 'model.pb'
14
labels_filename = 'labels.txt'
15
16
-network_input_size = 227
17
mean_values_b_g_r = (0,0,0)
18
19
size = (256, 256)
@@ -58,6 +57,9 @@ def predict_image(image):
58
57
with tf.Session() as sess:
59
prob_tensor = sess.graph.get_tensor_by_name(output_layer)
60
+ input_tensor_shape = sess.graph.get_tensor_by_name('Placeholder:0').shape.as_list()
61
+ network_input_size = input_tensor_shape[1]
62
+
63
# w = image.shape[0]
64
# h = image.shape[1]
65
w, h = image.size
0 commit comments