revert: disable Pose processor (was cancelled decision)
Pose was previously decided to be removed (ProcessorType::all()
already excludes it: 'Disabled in production pipeline'). However,
create_monitor_job's default processors array still contained 'pose',
job_worker's auto-pipeline status init still listed pose/appearance,
and processor_tools_v3.json had pose implementations enabled.
This reverts the pose portions of 8c6a2de8 (pose.rs placeholder
expansion and config --output args change) and fully disables Pose:
- config/processor_tools_v3.json: pose swift/mediapipe enabled=false,
restore original --output args for swift
- src/core/db/postgres_db.rs: create_monitor_job default processors
no longer includes 'pose'
- src/worker/job_worker.rs: auto-pipeline status init no longer lists
pose/appearance
- src/core/processor/pose.rs: revert placeholder expansion (unchanged
from pre-8c6a2de8)
Face config-driven fix (positional args + placeholder expansion) is kept.
This commit is contained in:
@@ -26,11 +26,12 @@
|
||||
"tool": "swift",
|
||||
"model": null,
|
||||
"priority": 0,
|
||||
"enabled": true,
|
||||
"enabled": false,
|
||||
"command": {
|
||||
"executable": "scripts/swift_processors/.build/release/swift_pose",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"--output",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
@@ -44,7 +45,7 @@
|
||||
"tool": "python",
|
||||
"model": "mediapipe",
|
||||
"priority": 2,
|
||||
"enabled": true,
|
||||
"enabled": false,
|
||||
"command": {
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/pose_processor_mediapipe.py",
|
||||
@@ -555,4 +556,4 @@
|
||||
"priority_policy": "rust/swift CLI (priority 0) > python (priority 1+)",
|
||||
"last_updated": "2026-09-27"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2249,7 +2249,7 @@ impl PostgresDb {
|
||||
&format!(
|
||||
r#"
|
||||
INSERT INTO {} (uuid, video_path, status, video_id, processors, face_settings)
|
||||
VALUES ($1, $2, 'pending', $3, ARRAY['cut','asr','face','ocr','asrx','pose'], $4::jsonb)
|
||||
VALUES ($1, $2, 'pending', $3, ARRAY['cut','asr','face','ocr','asrx'], $4::jsonb)
|
||||
RETURNING id, uuid, video_path, status, current_processor, progress_total, progress_current, error_count, last_error, started_at::TEXT, updated_at::TEXT, created_at::TEXT, processors, completed_processors, failed_processors, video_id, face_settings::text
|
||||
"#,
|
||||
jobs_table
|
||||
|
||||
@@ -526,14 +526,7 @@ async fn run_pose_with_config(
|
||||
|
||||
let args = if !tool.args.is_empty() {
|
||||
tracing::info!("[POSE] Using args from config: {:?}", tool.args);
|
||||
tool.args
|
||||
.iter()
|
||||
.map(|a| {
|
||||
a.replace("{video_path}", video_path)
|
||||
.replace("{output_path}", output_path)
|
||||
.replace("{file_uuid}", uuid.unwrap_or(""))
|
||||
})
|
||||
.collect()
|
||||
tool.args.clone()
|
||||
} else {
|
||||
let mut args = vec![video_path.to_string(), output_path.to_string()];
|
||||
if let Some(u) = uuid {
|
||||
|
||||
@@ -584,7 +584,7 @@ impl JobWorker {
|
||||
job.id, file_uuid
|
||||
);
|
||||
let all_procs: Vec<&str> =
|
||||
vec!["cut", "asr", "asrx", "ocr", "face", "pose", "appearance"];
|
||||
vec!["cut", "asr", "asrx", "ocr", "face"];
|
||||
let total: i64 = sqlx::query_scalar(&format!(
|
||||
"SELECT COALESCE(total_frames, 0) FROM {} WHERE file_uuid = $1",
|
||||
schema::table_name("videos")
|
||||
|
||||
Reference in New Issue
Block a user