我使用TF Retrain Inception开始的重新训练示例,但如果我尝试对图像进行分类,则会出现错误。我使用了下面的代码 - 分类的代码是否错误,或者我的内存分配有问题吗? import tensorflow as tf
import sys
# change this as you see fit
image_path = 'C:/tmp/test.jpg'
# Read in
代码: from keras.applications import InceptionV3
model = InceptionV3(weights="imagenet")
shape = (None,image_size,image_size,num_channels)
x = tf.placeholder(tf.float32, shape=shape)
我知道以下是已经回答的问题,但即使我尝试了所有建议的解决方案,但都没有解决我的问题。 我在MNIST数据集上进行了训练。开始的时候它更深入,但为了专注于我简化它的问题。 mnist = mnist_data.read_data_sets('MNIST_data', one_hot=True)
# train the net
def train():
for i in range(1