MitPandya / Human-Action-Recognition-and-Video-Classification-using-SVM-and-Deep-CNN-

18 stars 10 forks source link

test with a single video file #4

Open sasin07 opened 6 years ago

sasin07 commented 6 years ago

currently, we can test list of videos and get average accuracy. I want to feed the single video file and get a result. how can i evaluate this with single video file

MitPandya commented 6 years ago

You can save your trained model and then reuse it for single or multiple test files, let me know how it goes!

MitPandya commented 6 years ago

Also here is a trained model to download https://github.com/MitPandya/Human-Action-Recognition-and-Video-Classification-using-SVM-and-Deep-CNN-/blob/master/svm.pkl.gz

sasin07 commented 6 years ago

I tried your SVM part of your project and was able to train and evaluate the model successfully. But I want to demonstrate how to input a single video and get the result corresponding to that video. which file should I run?

MitPandya commented 6 years ago

I have added this file test_from_model.py to load svm from .pkl file and test. Note that you need to gunzip your .gz file and then run this file. This file can be used to test single or multiple test file it depends on your test_list file. To generate test file run python split_data.py test I hope this helps!

sasin07 commented 6 years ago

untitled

while running the code I get this kind of error.

MitPandya commented 6 years ago

Needed minor changes, sorry I did not run this code before pushing but it will work now. Thanks for pointing out!

sasin07 commented 6 years ago

Your solution works. Thanks for the helpful quick responses.

sasin07 commented 6 years ago

err

When I'm runing svm.py file, this error come again.what the reason for that?

nazlord commented 6 years ago

Also here is a trained model to download https://github.com/MitPandya/Human-Action-Recognition-and-Video-Classification-using-SVM-and-Deep-CNN-/blob/master/svm.pkl.gz

This link is no longer there!