Skip to content

Inference API: add batch-wise image analysis for superanimal prepare_2d#20

Merged
xiu-cs merged 1 commit intomainfrom
jaap/refactor_superanimal_estimator
Feb 25, 2026
Merged

Inference API: add batch-wise image analysis for superanimal prepare_2d#20
xiu-cs merged 1 commit intomainfrom
jaap/refactor_superanimal_estimator

Conversation

@deruyter92
Copy link
Collaborator

Currently in the inference pipeline the 2d predictions were handled frame-by-frame (derived from the demo pipeline). This PR changes changes that to using batch-wise processing for superanimal inference.

Note:
The difference will currently be minimal, as the superanimal inference pipeline in DeepLabCut currently has no public API for batched inference from in-memory arrays. This means that all image frames need to be written and read from disk. A feature request issue is opened on the DeepLabCut repo: DeepLabCut/DeepLabCut#3218

@deruyter92 deruyter92 requested a review from xiu-cs February 25, 2026 08:50
@deruyter92 deruyter92 marked this pull request as ready for review February 25, 2026 10:01
@deruyter92 deruyter92 force-pushed the jaap/refactor_superanimal_estimator branch from 5390439 to c97458f Compare February 25, 2026 10:14
Base automatically changed from jaap/handle_invalid_2d_estimations to main February 25, 2026 10:30
Copy link

@C-Achard C-Achard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch !

@xiu-cs xiu-cs merged commit d15e500 into main Feb 25, 2026
1 check passed
@xiu-cs xiu-cs deleted the jaap/refactor_superanimal_estimator branch February 25, 2026 15:43
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

Successfully merging this pull request may close these issues.

3 participants