Skip to content
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

Clips w/ people moving in and out of frame #33

Open
jacq819 opened this issue Aug 14, 2024 · 1 comment
Open

Clips w/ people moving in and out of frame #33

jacq819 opened this issue Aug 14, 2024 · 1 comment

Comments

@jacq819
Copy link

jacq819 commented Aug 14, 2024

Hi! I have a video where people are coming in and out of frame and I want to generate a mask for all persons found in the clip. My prompt in the workflow using Florence2 is "person". It appears that the moment the first person found exits the frame, the segmentation stops for the remainder of the clip, even though more people appear eventually. I can see that Florence2 can detect people beyond that point for the duration of the clip, but the segmentation drops off and rather than saving out a mask clip that is the same frame length as my source video, its much shorter. I've tried "people" and "humans" for alt prompts but same result. I also set the frame rate correctly as well as the "num_frames" to my clip length. Any suggestions?

@jacq819 jacq819 changed the title Moving Cameras w/ people in and out of frame Clips w/ people moving in and out of frame Aug 14, 2024
@kijai
Copy link
Owner

kijai commented Aug 14, 2024

Yeah the video segmenter doesn't support that yet, it would need adding new points in the moment the subject re-appears. Alternative for now could be using the single_image segmenter in batch mode, that does each frame individually, but that requires pretty much perfect tracking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants