wmcnally / golfdb

GolfDB is a video database for Golf Swing Sequencing, which involves detecting 8 golf swing events in trimmed golf swing videos. This repo demos the baseline model, SwingNet.
204 stars 62 forks source link

how to test another videos? #3

Closed chanho31 closed 4 years ago

chanho31 commented 4 years ago

I want to play eval.py with my golf video. But I can't figure out how to make a mat file like golfdb so it's impossible to test it with my golf video. I tried to use preprocess_videos.py but it failed. Can you teach me one example of preprocess_videos.py and mat files?

wmcnally commented 4 years ago

You do not need to make a mat file to test your own video. You should be able to modify preprocess_videos.py to prepare your own video, then you can process it using the pretrained model by modifying the eval.py code.

wmcnally commented 4 years ago

See newly added test_video.py for processing your own videos. Hope this helps.