ZeroDivisionError/OpenCV Error Opening File during Demo Code #430
Operating system and DeepLabCut version
I'm attempting to work through the reaching data demo set. I completed training of the dataset and it seems to have analyzed the video. However, it seems there are several issues. Highlighted:
(1) "The video was not analyzed with this scorer: DeepCut_resnet50_ReachingAug30shuffle1_300
I searched the forum for the ZeroDivisionError and found two relevant issues, #197 and #273 . I tried the solution for #273 and reinstalled ffmpeg in case that was the issue (
However, when I try to play the labeled video file I get an "invalid file type error" (0xc10100be). I've tried this with VLC which should be able to read the file - I think it might be that the file itself wasn't generated properly as a result of the errors.
I made only two intentional changes to the demo code - I added the config file path to sys.path as my demo script is not in the same directory as the "examples" folder, which was the only place I could successfully import the deeplabcut module. The second was the addition of
Would you be able to explain why issue (1) happens, and the next steps to resolve issue (2)? My guess is that issue (3) is derived from (2).
: I'm not clear how the brackets are being read in here:
(1): Which brackets are you referring to? (This output is copied straight from the terminal).
(2/3): So I redownloaded the file from your original paper, and I'm running into the same problem.
I downloaded the video using the link in the paper, moved it to the same folder, and changed the path to point to it in line 7. Using the snapshot from yesterday, it analyzed the video, but again it ran into a problem while creating the new video - a video was output into the folder along with the the H5 and PICKLE files, but it is unreadable.
I'm also using numpy 1.17.6 instead of 1.14.5 (I was trying to use the libraries supplied by the conda environment, but was running into problems cause by the old numpy, so I manually installed the latest version), in case that's relevant information.
Either the video is corrupt or codec not found. The main error was: "Error opening file (warning: Error opening file (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:901) in openCV"