Repository navigation
feat(crops): cut stable detection crops from the native crops - #750
Open
MateoLostanlen wants to merge 4 commits into
Open
MateoLostanlen wants to merge 4 commits into
MateoLostanlen wants to merge 4 commits into
Conversation
A validated sequence gets one crop box shared by all its detections. Refreshes are queued in the DB (crops_due_at with a lease), like the validation jobs, so none is lost on a restart.
Once a sequence is validated, a worker cuts the 224x224 crop of each detection from its native crop, with the same box for the whole sequence. When a bbox leaves the box, the box grows and every crop of the sequence is cut again. Crops sent by the engine are ignored when native crops are sent.
A refresh that outlives its lease is taken over by another worker: it no longer publishes its older crops nor releases the other job. Its cleanups keep the objects a detection still references, and deletions of replaced crops no longer block the event loop.
…nce-crops # Conflicts: # src/app/api/api_v1/endpoints/detections.py
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #749.
sequences.crop_box). Each detection sent with a native crop gets its crop cut with that box, from the native crop or from the frame when the box is larger. When a bbox leaves the box, the box grows and every crop of the sequence is cut again.crop_boxchanges.