Conversation
- adding missing docs for superbird
Contributor
There was a problem hiding this comment.
Pull Request Overview
Integrate the RTMPose_x human‐body model into the DeepLabCut model zoo, add a dedicated video inference pipeline using torchvision detectors, update configs, docs, tests, and GUI layout.
- Added
superanimal_humanbody_video_inference.pyfor a clean, Colab-style human‐body demo - Extended
load_super_animal_configandutilsto download configs from HuggingFace and support torchvision detectors - Updated tests, documentation, and the GUI model-zoo tab for thresholds, layout, and human‐body support
Reviewed Changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/pose_estimation_pytorch/modelzoo/test_webapp.py | Include superanimal_humanbody in webapp tests |
| tests/pose_estimation_pytorch/modelzoo/test_modelzoo_utils.py | Include superanimal_humanbody in utils tests |
| test_superanimal_humanbody.py | New top-level script for human-body detector integration test |
| deeplabcut/pose_estimation_pytorch/modelzoo/utils.py | Add HF download and special handling for human-body configs |
| deeplabcut/pose_estimation_pytorch/runners/inference.py | Introduce TorchvisionDetectorInferenceRunner |
| deeplabcut/gui/tabs/modelzoo.py | Revamp GUI: thresholds, media selector, adaptation options |
Comments suppressed due to low confidence (2)
deeplabcut/pose_estimation_pytorch/runners/inference.py:866
BaseDetectoris not imported in this module, causing a NameError. Addfrom deeplabcut.pose_estimation_pytorch.models.detectors.base import BaseDetectorat the top of the file.
class TorchvisionDetectorInferenceRunner(InferenceRunner[BaseDetector]):
deeplabcut/gui/tabs/modelzoo.py:365
deeplabcut.superanimal_analyze_imagesis not exposed on thedeeplabcutmodule at top level, leading to an AttributeError. Import or fully qualify this function before use.
help_text = deeplabcut.superanimal_analyze_images.__doc__
AlexEMG
reviewed
Jul 5, 2025
deeplabcut/pose_estimation_tensorflow/modelzoo/api/superanimal_inference.py
Show resolved
Hide resolved
remove debug statements
Merged
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.
Major Changes:
This integrates the RTMPose model that we demo with the low-level API in this notebook fully into the model zoo.
For ease, this is a new function called
deeplabcut/pose_estimation_pytorch/modelzoo/superanimal_humanbody_video_inference.pyit also works in the api call
It also updates the model-zoo tab for better handling of thresholds and more elegant layout:
Minor:
superbird