learn_ml
learn_ml copied to clipboard
[error]mvNCCheck TF_Model/tf_model.meta -in=conv2d_1_input -on=dense_2/Softmax
$ mvNCCheck TF_Model/tf_model.meta -in=conv2d_1_input -on=dense_2/Softmax mvNCCheck v02.00, Copyright @ Movidius Ltd 2016
Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/client/session.py", line 1323, in _do_call return fn(*args) File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/client/session.py", line 1302, in _run_fn status, run_metadata) File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/errors_impl.py", line 473, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.InvalidArgumentError: You must feed a value for placeholder tensor 'conv2d_1_input' with dtype float [[Node: conv2d_1_input = Placeholderdtype=DT_FLOAT, shape=[], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/mvNCCheck", line 152, in
Caused by op 'conv2d_1_input', defined at:
File "/usr/local/bin/mvNCCheck", line 152, in
InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'conv2d_1_input' with dtype float [[Node: conv2d_1_input = Placeholderdtype=DT_FLOAT, shape=[], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
You need a modified TensorFlowParser.py.
hi, brother but how to use TensorFlowParser.py to convert into graph when i want to convert your model after training they give me the same error. commond for converting: mvNCCompile TF_Model/tf_model.meta -in=conv2d_1_input -on=dense_2/Softmax give me error: InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'conv2d_1_input' with dtype float and shape [?,28,28,1] [[Node: conv2d_1_input = Placeholderdtype=DT_FLOAT, shape=[?,28,28,1], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
@Altaf-hucn Simply replace the bundled TensorFlowParser.py in ncsdk with this one.
Thanks for reply, sir i search all folders of ncsdk but i'm confused on what bundled i replace TensorFlowParser.py. if you don't mind please tell me step by step
In NCSDK 2.05.00.02, it's located in /opt/movidius/NCSDK/ncsdk-x86_64/tk/Controllers/Parsers/TensorFlow.py
.
Notice that my modified TensorFlowParser.py predates NCSDK 2.05.00.02, and may not work with it.
It's in /opt/movidius/NCSDK/ncsdk-x86_64/tk/Controllers/TensorFlowParser.py
.
Dear @oraoto i update my TensorFlowParser.py but again it did'nt work. In my laptop currently i install NCSDK version 1 in ubuntu 16.04. please give me some suggestion?
Sorry, i don't have NCSDK 1 installation right now, maybe you should try NCSDK 2.
Dear i install NCSDK2 and train your coded model again and also change TensorflowParser.py, but again shown the same error, Brother if you don't mind please tell me about your setup or please run your code and convert yourself. Sir you carefully read the ncsdk/examples/tensorflow/inception_v1/inception-v1.py ncsdk code , in the code they pass a placeholder.
#! /usr/bin/env python3 import numpy as np import tensorflow as tf
from tensorflow.contrib.slim.nets import inception slim = tf.contrib.slim def run(name, image_size, num_classes): with tf.Graph().as_default(): image = tf.placeholder("float", [1, image_size, image_size, 3], name="input") with slim.arg_scope(inception.inception_v1_arg_scope()): logits, _ = inception.inception_v1(image, num_classes, is_training=False, spatial_squeeze=False) probabilities = tf.nn.softmax(logits) init_fn = slim.assign_from_checkpoint_fn('inception_v1.ckpt', slim.get_model_variables('InceptionV1'))
with tf.Session() as sess:
init_fn(sess)
saver = tf.train.Saver(tf.global_variables())
saver.save(sess, "output/"+name)
run('inception-v1', 224, 1001)
Error showing: InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'conv2d_1_input' with dtype float and shape [?,28,28,1] [[{{node conv2d_1_input}} = Placeholderdtype=DT_FLOAT, shape=[?,28,28,1], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]