Selection

Classes:

DLC(model_dir, model_zoo, *args, **kwargs)

Do pose estimation with DeepLabCut-Live!!!!!

DLCSlice(select, tuple, list], …)

Select x,y coordinates of DLC output based on the name of the tracked parts

Slice(select, *args, **kwargs)

Generic selection processor

Transform(rhythm, *args, **kwargs)

Metaclass for data transformations

class Slice(select, *args, **kwargs)[source]

Bases: autopilot.transform.transforms.Transform

Generic selection processor

Parameters
  • select (slice, tuple[slice]) – a slice or tuple of slices

  • *args

  • **kwargs

Methods:

check_slice(select)

process(input)

Attributes:

format_in

format_out

format_in = {'type': 'any'}
format_out = {'type': 'any'}
check_slice(select)[source]
process(input)[source]
class DLCSlice(select: Union[str, tuple, list], min_probability: float = 0, *args, **kwargs)[source]

Bases: autopilot.transform.selection.Slice

Select x,y coordinates of DLC output based on the name of the tracked parts

note that min_probability is undefined when a list or tuple of part names are defined: the form of the returned array is ambiguous (how to tell which part is which when some might be excluded?)

Args: select (slice, tuple[slice]): a slice or tuple of slices *args: **kwargs:

Methods:

check_slice(select)

process(input)

Attributes:

format_in

format_out

format_in = {'parent': <class 'autopilot.transform.image.DLC'>, 'type': <class 'numpy.ndarray'>}
format_out = {'type': <class 'numpy.ndarray'>}
check_slice(select)[source]
process(input: numpy.ndarray)[source]