feat(pipeline): implement stage runner, cache, cli, and doctor command
This commit is contained in:
27
src/songsplit/pipeline/s5_tempo.py
Normal file
27
src/songsplit/pipeline/s5_tempo.py
Normal file
@ -0,0 +1,27 @@
|
||||
"""Stage 5: Beat and downbeat tracking with beat_this -> tempo.json."""
|
||||
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
||||
|
||||
|
||||
class TempoStage(Stage):
|
||||
name = "s5_tempo"
|
||||
version = "1.0.0"
|
||||
model_name = "beat_this"
|
||||
model_version = "1.0.0"
|
||||
dependencies = ["s2_stems"]
|
||||
|
||||
def get_inputs(self, ctx: PipelineContext) -> list[Path]:
|
||||
return [ctx.stems_dir / "instrumental.wav"]
|
||||
|
||||
def get_outputs(self, ctx: PipelineContext) -> list[Path]:
|
||||
return [ctx.output_dir / "tempo.json"]
|
||||
|
||||
def get_params(self, ctx: PipelineContext) -> dict[str, Any]:
|
||||
return {}
|
||||
|
||||
def run(self, ctx: PipelineContext) -> None:
|
||||
# Implementation in M3
|
||||
raise NotImplementedError("Stage s5_tempo will be implemented in M3.")
|
||||
Reference in New Issue
Block a user