Skip to content

Fix entity assignment if use_entity_annotation=True#68

Merged
padix-key merged 1 commit intomainfrom
fix-entity-assignment
Jan 13, 2026
Merged

Fix entity assignment if use_entity_annotation=True#68
padix-key merged 1 commit intomainfrom
fix-entity-assignment

Conversation

@padix-key
Copy link
Collaborator

Currently the minlength of reference_entity_id_counts and pose_entity_id_counts rely on entity IDs ranging from 0 to N. However, if use_entity_annotation=True the entity IDs may be arbitrary integers. This PR removes this potentially wrong assumption.

For example if the entity IDs are [2,3,5,7], previously np.bincount(minlength=4) would be set instead of the correct minlength=8

@padix-key padix-key merged commit 1a75407 into main Jan 13, 2026
6 checks passed
@padix-key padix-key deleted the fix-entity-assignment branch January 13, 2026 17:02
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.

2 participants