Pretrained-Show-and-Tell-model
Pretrained-Show-and-Tell-model copied to clipboard
Model does not produce expected results
I have followed the directions in the repository to download and run the model. The code successfully executes for the following image (directly from the Tensorflow im2txt repository)
However, when I run the model against this image, I receive the intended results:
What could be the problem that I am running into?
I have the same issue. Also, I get the same out of memory warnings you're getting on my 1080, and I had to add allow_growth config option or it would bomb.
I also tried it on a rented 2080 ti and got the same classification, but no memory warnings.
Same probleme here, any update yet? Also tried this implementation here: https://modeldepot.io/leeryboy/show-and-tell but the results are the same.
Hello, I have the same issue of poor performance. Can you tell me what is the problem
Found the solution:
https://github.com/tensorflow/models/issues/6513
When I change line 182 to:
most_likely_words = np.argsort(word_probabilities)[-self.beam_size][::-1]
I get:
IndexError: invalid index to scalar variable.
Did anyone face this or know how to solve it?
Edit
I changed line 182 to:
most_likely_words = np.argsort(word_probabilities)[::-1]
and that worked for me.