Skip to content

Sampler module #5

@bmcfee

Description

@bmcfee

Given a data dict, implement patch/frame sampling.

Interface:

  • Patch duration
    • None = full track
  • Multi-annotation policy
    • random sample for each patch (flatten the annotation index)
    • all annotations
  • Keys
    • if None, return all
    • else, filter to only sample '{key}/*' from the data dict, for each selected key
  • n_samples

Partial annotation policies?

  • Only return slices where all annotations are annotated?
    • does not scale / hard to make work with multiple annotations
  • Dynamic masking
    • BaseTaskTransformer should record the valid range (in frames) for the annotation, not the mask. Empty annotations have a valid range of [0,0).
    • Whenever a patch is sampled, compute the overlap of the sample index with the valid range, and use a threshold to determine mask.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions