bw4sz / DeepMeerkat

Background subtraction and image classification for stationary cameras in ecological videos.
http://benweinstein.weebly.com/deepmeerkat.html
GNU General Public License v3.0
26 stars 11 forks source link

Cannot divide by 0 #4

Closed bw4sz closed 6 years ago

bw4sz commented 6 years ago

A couple users have reported an intermittent error on mutlithreaded running on Windows only.

cojbnmiiccfccokh

I have not been able to replicate this error, but my current belief is that it has to do with the codecs on the individual computer. If you get this error, please give as much detail as possible.

bw4sz commented 6 years ago

This seems related to #5 , I added a error message for corrupted files, but user needs to check codecs. Not clear why this would just happen in multithreaded.

bw4sz commented 6 years ago

The mystery thickens. A user reports the same error, but has run dozens of videos without a problem before this. error deepmeerkat

She reports no obvious reason that this batch (which was not run in multithreaded) should fail. It remains my belief that the file is corrupted, either because ffmpeg fails (memory load?). This is likely happening within cv2.videocapture(). Still no way to reproduce what seems to be a very rare, but lethal problem.

bw4sz commented 6 years ago

I have not been able to reproduce this problem.