syncnet_python icon indicating copy to clipboard operation
syncnet_python copied to clipboard

Different results between demo_syncnet.py and run_syncnet.py

Open leeeeeeo opened this issue 7 years ago • 6 comments

When using python demo_syncnet.py --videofile data/example.avi --tmp_dir /path/to/temp/directory, I get the same result as: AV offset: 4 Min dist: 6.742 Confidence: 10.447

But, when using run_syncnet.py, I get different result from above: AV offset: 2 Min dist: 7.093 Confidence: 9.238

Why is that? Thank you!

leeeeeeo avatar Nov 20 '18 06:11 leeeeeeo

And I have another question: run_sync.py can output AV offset, Min dist and Confidence, but how to recover video without offsets?

offsets.txt are generated from run_sync.py, but it's never used after then.

leeeeeeo avatar Nov 20 '18 09:11 leeeeeeo

Any update on this please?

abhisheksgumadi avatar Dec 12 '18 16:12 abhisheksgumadi

run_pipeline.py runs the face tracking script and re-encodes the video using ffmpeg. I suspect that the re-encoding process is introducing an offset.

joonson avatar Dec 14 '18 05:12 joonson

Hi @joonson , I also observed that the output of the Face Detector which produces the cropped video introduces a slight delay between the audio and the video. I know that the audio and the video do not have any delay in their original version where the face is not cropped.

Any idea which part of the code might be doing this as the results definitely get affected? With some guidance I am happy to debug it.

Thanks.

abhisheksgumadi avatar Jan 08 '19 13:01 abhisheksgumadi

Hi, I also get results offset: 4, by running demo script. But I cannot tell what is the unit of the offset. Is it milliseconds?

Olivialovecode avatar Mar 04 '21 04:03 Olivialovecode

Hi, I also get results offset: 4, by running demo script. But I cannot tell what is the unit of the offset. Is it milliseconds?

looks like frame index: offset < 0, the audio is faster than the video frame. offset > 0, the video is faster than the audio frame.

XinBow99 avatar Apr 29 '24 09:04 XinBow99