-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoding Multiple Videos using Batch File #710
Comments
Hi @ARTUR551, Glad you are enjoying SLEAP! We have seen a few problems like this occur when the video is not reliably seekable. Try reencoding your video and let us know how that works. Thanks, P.S. Also linking similar problems here for reference (namely Unable to load frame #366 and KeyError when trying to run inference #630). |
Hi roomrys, Thank you for your timely response. Is there a way to batch (or folder) reencode? (I'm not an expert in programming, I already looked all over and I did not find a way) I have hundreds of videos to analyze. Thanks again, Artur |
Hi @ARTUR551, Great that it worked! To do any computer vision-based processing (as needed in training and inference), we require the video to be reliably seekable. That being said if you have many videos within a folder that are not reliably seekable and would like to perform training and/or inference on them, then we can create a batch file within the folder that will run the re-encode command on all the files (of a specific extension). Since we are running a command on an entire folder, I recommend having backup of the videos just to be safe. To run the re-encode on an entire directory of videos (on Windows - if you are on another system, I can create instructions for a similar process):
Re-encoding does take a bit of time, so we recommend only doing it on videos you will use with SLEAP (which are not reliably seekable). Let me know if this works for you. Thanks, |
We should add documentation on this. |
It worked nicely! Yes, documentation about this would be helpful. Thanks! |
Closing as a duplicate of the objectives of #581. |
Hi,
Thank you for developing SLEAP!
I have been running into the same error over and over.
After the GUI finishes training and tries to start the inference an error occurs:
KeyError: "Unable to load frame 7679 from MediaVideo(filename='D:/SLEAP/TEST_001.mp4', grayscale=False, bgr=True, dataset='', input_format='channels_last')."
'open_in_gui': False,
'peak_threshold': 0.2,
'tracking.tracker': None,
'tracking.target_instance_count': None,
'tracking.pre_cull_to_target': None,
'tracking.pre_cull_iou_threshold': None,
'tracking.post_connect_single_breaks': None,
'tracking.clean_instance_count': None,
'tracking.clean_iou_threshold': None,
Process return code: 1
I already tried with several single videos and pairs of them. I also tried to cut the last frames (even seconds) of several videos and I always get the same error. It is always with the last couple of frames of any video.
It also occurs when I try to run directly the inference process.
Is it a bug or I'm using wrong videos?
Thanks again!
Artur
The text was updated successfully, but these errors were encountered: