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

Model does not produce expected results #27

Open
vineetrshenoy opened this issue May 3, 2019 · 5 comments
Open

Model does not produce expected results #27

vineetrshenoy opened this issue May 3, 2019 · 5 comments

Comments

@vineetrshenoy
Copy link

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)
COCO_val2014_000000224477

However, when I run the model against this image, I receive the intended results:

Screenshot from 2019-05-03 10-47-55

What could be the problem that I am running into?

@ianmcmahon
Copy link

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.

@coliinkc
Copy link

coliinkc commented Jun 8, 2019

Same probleme here, any update yet?
Also tried this implementation here: https://modeldepot.io/leeryboy/show-and-tell but the results are the same.

@xieyxclack
Copy link

Hello, I have the same issue of poor performance.
Can you tell me what is the problem

@coliinkc
Copy link

Found the solution:

tensorflow/models#6513

@senorpinatta
Copy link

senorpinatta commented Jul 16, 2019

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.

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

5 participants