tensorflow-finetune-flickr-style
tensorflow-finetune-flickr-style copied to clipboard
ValueError
Hi,I am so sorry to trouble you again, but I have a issue troubled me these days. I use your code https://github.com/joelthchao/tensorflow-finetune-flickr-style/blob/master/finetune.py to finetune the network onto my own data to classify kaggle Dogs VS. Cats. It runs this error: ValueError: Cannot feed value of shape () for Tensor u'Placeholder:0', which has shape '(50, 227, 227, 3)' Why did it happened? Please help me.
It seems like you provide an empty batch to the network, therefore the shape is ()
.
In the finetune.py there is a parameter batch_size = 50, and how could it be an empty batch? It seems that the parameter did not transfer to the next_batch function, but I do not know why.
You need to check the batch data provide by next_batch
. If it returns empty batch, you may need to validate the path to image files.