这是我的问题。我训练了一个卷积神经网络,用tensorflow将图像分为两类。我现在想知道如何使用来自神经网络的权重,并在未标记的随机图像上进行测试。tensorflow中是否有这样的函数,还是我现在应该自己运行卷积?
发布于 2017-04-05 23:24:06
完成培训后,您可以创建
feed_dict_unlabeled = {x: x_unlabeled}现在,使用代码中定义的y_pred_cls,如下所示:
y_pred_cls = tf.argmax(y_pred, dimension=1)你可以做到
y_labels = session.run(y_pred_cls, feed_dict=feed_dict_unlabeled)
若要查找未标记数据的标签,请执行以下操作。
此外,下面是关于类似场景的讨论,您可能会发现这很有帮助:Python/Tensorflow - I have trained the convolutional neural network, how to test it?
https://stackoverflow.com/questions/43243043
复制相似问题