Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need the code to predict an image for the model trained using flower_train_cnn.py #12

Open
frajos100 opened this issue Jul 4, 2018 · 0 comments

Comments

@frajos100
Copy link

frajos100 commented Jul 4, 2018

Need the code to predict an image for the model trained using flower_train_cnn.py. Was trying to use conv_mnist_inference.py and match the parameters in the evaluation logic in flower_train_cnn.py.
BATCH_SIZE = 10
x = tf.placeholder(tf.float32, shape=[BATCH_SIZE, 5])
x_image = tf.reshape(x, [-1, IMAGE_SIZE, IMAGE_SIZE, 3])

Getting the following error
ValueError: Dimension size must be evenly divisible by 150528 but is 50 for 'Reshape' (op: 'Reshape') with input shapes: [10,5], [4] and with input tensors computed as partial shapes: input[1] = [?,224,224,3].

Also i suppose the same flower_train_cnn.py would work for training any tfrecord files we create using the images and label,txt by running the command build_image_data.py.
Was a bit confused http://yeephycho.github.io/2016/08/15/image-data-in-tensorflow/ following the link. and hence need your guidance.

Thanking you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant