8000 Exporting to analysis HDF5 should use user-labeled instance instead of predicted instance when available · Issue #637 · talmolab/sleap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip 8000 to content
Exporting to analysis HDF5 should use user-labeled instance instead of predicted instance when available #637
Closed
@talmo

Description

@talmo

Currently, proofreading is primarily used to correct track identities to fix swaps and etc.

To adjust one or more landmarks, you have to double click on the prediction to create a user instance from it with nodes that are movable.

The problem is that both the original predicted instance and the new (corrected) user instance are both still stored in the labels. This could result in the original predicted instance being used instead of the new user instance when exporting to an analysis HDF5 file.

Thanks @olinesn for raising this issue!


Solutions:

  1. We should explicitly check for linked predicted <-> user instances by inspecting the Instance.from_predicted attribute.
  2. We could just write out all the predicted instances to the appropriate tracks and then the user instances, overwriting any predicted instances in the corresponding track channels of the exported tracks array.

The first option is more general and would work even when the Instance.track attribute isn't set (e.g., for single instance videos).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0