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

Testing from Video input #13

Closed
Zumbalamambo opened this issue Dec 20, 2017 · 4 comments
Closed

Testing from Video input #13

Zumbalamambo opened this issue Dec 20, 2017 · 4 comments

Comments

@Zumbalamambo
Copy link

How do I test it realtime or any video as an input using VideoCapture?

@bryanyzhu
Copy link
Owner

Right now, the input is a folder of frames corresponding to a video as in here. Then we evenly sample 25 frames from the video and average the prediction results.

If you want to do online testing (like streaming video), I suggest you look into this file, especially line 78. For example, you can have a buffer to store the incoming frames using VideoCapture. Whenever you have 25 frames, you make them into a batch like in line 78, and give it to the model for prediction. Hope this helps.

@thassan66
Copy link

Can i get your trained model and evaluate it UCF101 to generate results

@bryanyzhu
Copy link
Owner

@taimur99 Sure, but I didn't quite understand your question. I think I already shared my trained models for UCF101 split1 in this repo, both VGG16 and ResNet152 models. And I also share the test script to generate the results. No matter you want to test on UCF101, or test it on any video, or use them as feature extractors, you can just modify the test script a little bit to get what you want. Hope this helps.

@thassan66
Copy link

Okay, Thanks

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

3 participants