config
sleap.qc.config
¶
Configuration for Label QC detector.
Classes:
| Name | Description |
|---|---|
QCConfig |
Configuration for QC detector. |
QCConfig
dataclass
¶
Configuration for QC detector.
Attributes:
| Name | Type | Description |
|---|---|---|
use_gmm |
bool
|
Whether to use GMM-based anomaly detection. |
use_curvature |
Literal['auto'] | bool
|
Whether to compute curvature features. If "auto", enables when skeleton has chains >= 5 nodes. |
use_symmetry |
Literal['auto'] | bool
|
Whether to compute symmetry features. If "auto", enables when skeleton has symmetry pairs defined. |
use_anatomical |
bool
|
Whether to compute anatomical features (signed angles). |
instance_threshold |
float
|
Threshold for flagging instances (0-1). Higher = fewer flags, lower = more flags. |
frame_threshold |
float
|
Threshold for frame-level checks. |
duplicate_iou_threshold |
float
|
IOU threshold for duplicate detection. |
duplicate_node_overlap_ratio |
float
|
Node overlap ratio for partial duplicates. |
gmm_n_components |
int
|
Number of GMM components. |
gmm_min_samples |
int
|
Minimum samples required for GMM fitting. Below this, falls back to z-score thresholding. |
gmm_percentile_threshold |
float
|
Percentile below which instances are anomalies. |
auto_calibrate |
bool
|
Whether to auto-calibrate threshold from data. |
calibration_percentile |
float
|
Percentile for auto-calibration. |
Methods:
| Name | Description |
|---|---|
should_use_curvature |
Determine if curvature features should be used. |
should_use_symmetry |
Determine if symmetry features should be used. |