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

extract_image_feature generates "nan" probability #13

Closed
hytseng0509 opened this issue Oct 20, 2017 · 6 comments
Closed

extract_image_feature generates "nan" probability #13

hytseng0509 opened this issue Oct 20, 2017 · 6 comments

Comments

@hytseng0509
Copy link

Hi,

Thanks for sharing the codes.
I followed the steps of reproducing results on THUMOS14. However, I found that some probabilities in .prob file generated by executing ./xfeat.sh were "nan". (not all probabilities in a single .prob file is "nan", only a few of them)
Any idea what may be wrong?

Thanks!

@sunnyxiaohu
Copy link

How about you batch_size ? Just decrease your batch_size when testing.

@hytseng0509
Copy link
Author

My batch_size is 4, and the number of mini-batch is 9046, as suggested in the official sample code.

@minhtriet
Copy link

Why should decreasing batch_size help?

@sunnyxiaohu
Copy link

It may caused by the implementation of the caffe branch. Try it again, if you still get "nan" probability

@minhtriet
Copy link

minhtriet commented Dec 3, 2017

That is actually right, thank you. In my case, I decreased the batch_size from 4 to 1. mini_batch is still 9046.

I think theoretically, the bigger the batch number is, the longer the fraction of video is, then hopefully the more accurate the network is able to classify the action. Will do some experiment to see which batch_size produce best result.

One more thing, could you elaborate more why do you think it may caused by the implementation of the caffe branch?

@zhengshou
Copy link
Collaborator

Hi,

Thank you for your interest. This issue seems due to a bug in C3D. I have fixed and updated it.

Best,
Zheng

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

4 participants