improved handling of animal names when analyzing videos by n-poulsen · Pull Request #2884 · DeepLabCut/DeepLabCut

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@n-poulsen

Copy link

Contributor

Closes #2877

This pull request address video analysis and labeled video creation for multi-animal projects.

  • adds an animal_names parameter to deeplabcut.analyze_videos and deeplabcut.stitch_tracklets, allowing users to pass custom animal names when analyzing novel videos
  • when users ask to track fewer animals than the number defined in the project config.yaml, the first n names are taken instead of replacing the names with ["ind0", "ind1", ...]
  • fixes the use of the displayedindividuals parameter in create_labeled_video when the names of the individuals in the analysis DataFrame don't match the name of the individuals in the project config.yaml

@n-poulsen n-poulsen added the enhancement

New feature or request

label

Feb 17, 2025
Copy link

Contributor

@maximpavliv maximpavliv left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @n-poulsen !!

@n-poulsen n-poulsen merged commit fa2ebee into main

Feb 17, 2025

5 checks passed

@n-poulsen n-poulsen deleted the niels/individual_naming branch

February 17, 2025 16:30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@MMathisLab MMathisLab Awaiting requested review from MMathisLab

1 more reviewer

@maximpavliv maximpavliv maximpavliv approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

enhancement

New feature or request

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Individuals are mislabeled when analyzing the video

2 participants

@n-poulsen @maximpavliv