import tensorflow as tf

            try:
                sess.run(var)
            except tf.errors.FailedPreconditionError:               
                uninitialized_vars.append(var)

        init_new_vars_op = tf.variables_initializer(uninitialized_vars)
        sess.run(init_new_vars_op)
        
        # Evalute the network for the given image
        pred = sess.run(net.get_output(), feed_dict={input_node: img})
