Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

KeyError "Unable to load frame" causing SLEAP to crash when predicting #765

Closed
4 tasks
lencriv opened this issue May 27, 2022 · 3 comments
Closed
4 tasks
Labels
bug Something isn't working

Comments

@lencriv
Copy link

lencriv commented May 27, 2022

Bug description

When predicting over an entire video the program crashes

Expected behaviour

Actual behaviour

Your personal set up

  • OS: Windows 11
  • Version(s): SLEAP v1.2.0a0, python 3.8
Environment packages
# paste output of `pip freeze` or `conda list` here
Logs KeyError: "Unable to load frame 17 from MediaVideo(filename='C:/Users/LEncR/Desktop/FM_H&T/FM_H_T/mouse_behavior/day 1 vs DAC/mr8/mr8_105_v0-1_e366b7a7-d2f5-11ec-9668-38fc98ee8dd7/mr4_27_v0-1_12ede32a-8ab7-11ec-9ca2-38fc98ee8dd7_living_zone_vid.mp4', grayscale=True, bgr=True, dataset='', input_format='channels_last')."
# paste relevant logs here, if any

Screenshots

image

How to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
@lencriv lencriv added the bug Something isn't working label May 27, 2022
@roomrys
Copy link
Collaborator

roomrys commented May 27, 2022

Hi @lencriv,

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,
Liezl

P.S. Also linking similar problems here for reference (namely Unable to load frame #366, KeyError when trying to run inference #630, and Encoding Multiple Videos using Batch File #710).

@lencriv
Copy link
Author

lencriv commented May 27, 2022

Hi @roomrys
this worked! thanks :)

@roomrys
Copy link
Collaborator

roomrys commented May 27, 2022

Great! I am converting this to a discussion in case others might find it helpful.

@talmolab talmolab locked and limited conversation to collaborators May 27, 2022
@roomrys roomrys converted this issue into discussion #767 May 27, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants