py-feat icon indicating copy to clipboard operation
py-feat copied to clipboard

Missing frames in detect_video results

Open Ben-FCC opened this issue 3 years ago • 1 comments

Hi there,

I used detect_video to process my videos, but I got weird results. I don't know how it happens. The arguments I used are skip_frames=1,batch_size = 256, singleframe4error = True

A series of frames were missed in the results. (frame: 27391 -> 27517) 截圖 2022-07-03 下午1 51 30

Here are the warning messages when I was processing the videos. 截圖 2022-07-03 下午1 51 48

Please let me know if I misunderstand anything. Thanks!

Ben-FCC avatar Jul 03 '22 06:07 Ben-FCC

Hi @Ben-FCC , apologies for the issues you are having. We are currently in the process of updating both how batch processing is being done and error handling, which I believe will address this issue. WIP PR https://github.com/cosanlab/py-feat/pull/133. The batch processing system that is currently implement has a lot of hacky ways to try and salvage as much data as possible when it encounters errors, rather than losing an entire batch of data. The singleframe4error flag is one example.

ljchang avatar Aug 05 '22 15:08 ljchang