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

Prediction results are the same in inference #18

Open
gantians opened this issue Apr 19, 2018 · 0 comments
Open

Prediction results are the same in inference #18

gantians opened this issue Apr 19, 2018 · 0 comments

Comments

@gantians
Copy link

gantians commented Apr 19, 2018

I just use the pretrained model to predict my own data without training.
The model is NetVLADModelLF.

I only extract rgb features on my own data and construct input tensor.

for i in xrange(data_num): 
        feature = data[i]
        pad_feature = np.zeros([300, 1152])
        pad_feature[0, :1024] = feature
        video_batch = pad_feature[np.newaxis, :, :].astype(np.float32)
        num_frames_batch = np.array([1], dtype=np.int32)
        predictions = sess.run([predictions_tensor],
                        feed_dict={input_tensor: video_batch, num_frames_tensor: num_frames_batch})

The predictions are the same.
I tried to construct 300 frame input but the problems remains.

Did i do the inference correctly?

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