Run an Active Speaker Detection (ASD) demo
mainTo run a demo on a raw video file (e.g., .mp4 or .avi):
- Place your video file in the
demofolder (e.g.,demo/0001.mp4). - Run
Columbia_test.pyspecifying the video name and folder.
By default, the model uses weights trained on the AVA-ActiveSpeaker dataset. To use the TalkSet fine-tuned weights, provide the --pretrainModel argument.
Output: The resulting video will be saved to demo/[videoName]/pyavi/video_out.avi. In the output, active speakers are marked with a green box and non-active speakers with a red box.
# Standard demo (uses AVA weights)
python Columbia_test.py --videoName 0001 --videoFolder demo
# Demo using TalkSet fine-tuned weights
python Columbia_test.py --videoName 0001 --videoFolder demo --pretrainModel weight/finetuning_TalkSet.model