Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions beneuro_pose_estimation/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,19 @@ def train(
"If not provided, uses default cameras from params.default_cameras."
),
),
custom_labels: bool = typer.Option(
False,
"--custom-labels", "-cl",
help="If set, use custom labels when training the models.",
),
):
"""
Train SLEAP models for specified cameras (or all defaults).
"""
from beneuro_pose_estimation.sleap.sleapTools import train_models
cams = cameras or params.default_cameras
# train_models is the function you already wrote
train_models(cam, custom_labels = custom_labels)

cams = cameras or params.default_cameras
train_models(cameras=cams, custom_labels=custom_labels)
# =================================== Updating ==========================================


Expand Down
Loading