164710/getting-caption-probability-pretrained-checkpoints-captioning
I am using pre-trained 2M checkpoints for im2txt. I am getting one word as captions as below. I am using tensorflow version 1.0 Ubuntu 16.04
0) (p=0.000000) 1)the (p=0.000000) 2)two (p=0.000000)
I am expecting a complete sentence but got an irrelevant one-word caption
Under caption_generator.py
change the following line as follow
most_likely_words = np.argsort(word_probabilities)[-self.beam_size:][::-1]
If the problem persists, try using a checkpoints file that has been updated with the newest code.
captiongenerator.py is a Python script that generates ...READ MORE
Not exactly. If your sigmoid output was ...READ MORE
Apart from instructional purposes, I'm not sure ...READ MORE
To move the density in one way, ...READ MORE
Hey! Your array shapes seem inconsistent. Try ...READ MORE
Try this: import numpy as np from matplotlib import ...READ MORE
Hey @Greg, this is possible. You can ...READ MORE
Hi, @Adil, I would suggest you go through ...READ MORE
The above situation is the case where ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.