-
Notifications
You must be signed in to change notification settings - Fork 82
[SecondSpectrum] Add include_missing_ball_frames as parameter #523
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
base: master
Are you sure you want to change the base?
[SecondSpectrum] Add include_missing_ball_frames as parameter #523
Conversation
|
I haven’t looked at the data myself yet, but I don’t fully understand why you would want to remove these frames. Are these simply frames where the ball’s location wasn’t tracked correctly? Hence, I guess this could also happen if the ball is in play but briefly occluded by a player, for example. In that case, I would rather set the |
|
Apologies for not being more clear in my message. From the data I have I can see that the ball_z = -10 only happens while ball_state="dead". It's also worth nothing that it's about 45% of all frames that have this, so it's a significant overhead to parse them all out, and then have to filter them out right after because they are useless frames in most cases. Setting
Could we do both? Settings ball coordinates to None if ball_z = -10 and allowing the user to remove them if they want? Note: I currently have only 1 game. |
|
So I understand that there are two separate issues here.
|
2a. I don't think it has to apply to all providers, skillcorner has What we could do (but this might make it more complicated for the user) is have |
|
2a. Missing ball coordinates is something that appears with all data providers if the ball goes too far out of bounds. I do not see why this would only apply to SecondSpectrum. |
|
2a. True, but not sure every data provider is as clear about the fact that the ball is not being captured. At least secondspectrum sets it to -10 when they can't track it. I'm fine if you want this to be available for every provider, but I've never seen it being made this clear / explicit with other data providers. Also, I don't think it makes sense for broadcast providers, only in stadium because their quality of tracking is higher and they have a lot fewer frames with missing ball while the ball is actually in play. My idea is only to throw out the frames when ball is dead. |
|
@probberechts I have renamed |
It seems SecondSpectrum assigns a lot of dead ball frames with totally wrong ball coordinates (i.e., [0.0,0.0,-10]). They are easily spotted because they for ball_z to -10.
I've added a parameter to the SecondSpectrum deserializer that allows us to optionally skip all these frames, reducing overhead. This seems redundant when
only_alive=Truebut it's not whenonly_alive=Falsebecause not all dead ball frames have this value. It seems to happen when ball is actually out of frame or something.Note: this builds on PR#522