diff --git a/splitter-cli/PassthroughSplitter.cs b/splitter-cli/PassthroughSplitter.cs index 8a76679..3cb9501 100644 --- a/splitter-cli/PassthroughSplitter.cs +++ b/splitter-cli/PassthroughSplitter.cs @@ -114,14 +114,14 @@ public sealed class PassthroughSplitter : LoggingBase, ISegmentProcessor { FileName = "ffprobe", Arguments = - "-select_streams v " + - $"-read_intervals \"{(segmentStart-0.1).ToString(CultureInfo.InvariantCulture)}%+{window.ToString(CultureInfo.InvariantCulture)}\" " + - "-skip_frame nokey " + - "-show_packets " + - "-show_entries packet=pts_time,flags " + - "-of compact=p=0 " + - "-v quiet " + - $"\"{inputFile}\"", + "-select_streams v " + + $"-read_intervals \"{(segmentStart-0.1).ToString(CultureInfo.InvariantCulture)}%+{window.ToString(CultureInfo.InvariantCulture)}\" " + + "-skip_frame nokey " + + "-show_packets " + + "-show_entries packet=pts_time,flags " + + "-of compact=p=0 " + + "-v quiet " + + $"\"{inputFile}\"", RedirectStandardOutput = true, UseShellExecute = false, CreateNoWindow = true diff --git a/splitter-cli/README.md b/splitter-cli/README.md index c1268e9..afb9e40 100644 --- a/splitter-cli/README.md +++ b/splitter-cli/README.md @@ -21,7 +21,14 @@ It supports batch input, flexible duration formats, rotation, smart face/body-aw - FFmpeg and FFprobe available in system PATH - .NET 10 Runtime or newer -If you want to update model: +Due to GitHub file size limits, Splitter does not include the ONNX models used for face and body detection. You must download them separately and place them in the `models` folder. + +For body detection we use [Ultralytics/YOLO26 · Hugging Face](https://huggingface.co/Ultralytics/YOLO26). + +Exact quantation Yolo26s.onnx (body detection) can be downloaded from [yolo26m/yolo26m.onnx · prithivMLmods/YOLO26-ONNX at main](https://huggingface.co/prithivMLmods/YOLO26-ONNX/blob/main/yolo26m/yolo26m.onnx). +Model card: [prithivMLmods/YOLO26-ONNX · Hugging Face](https://huggingface.co/prithivMLmods/YOLO26-ONNX) + +If you want to update model yourself: - For face detection: [opencv_zoo/models/face_detection_yunet at main · opencv/opencv_zoo](https://github.com/opencv/opencv_zoo/tree/main/models/face_detection_yunet) - For body detection: [yolov8s.pt · Ultralytics/YOLOv8 at main](https://huggingface.co/Ultralytics/YOLOv8/blob/main/yolov8s.pt) diff --git a/splitter-cli/algo/YoloV10ObjectDetector.cs b/splitter-cli/algo/YoloV10ObjectDetector.cs index df2e356..5c7ff5e 100644 --- a/splitter-cli/algo/YoloV10ObjectDetector.cs +++ b/splitter-cli/algo/YoloV10ObjectDetector.cs @@ -54,7 +54,7 @@ public sealed class YoloV10ObjectDetector : LoggingBase, IObjectDetector, IDispo options.AppendExecutionProvider_DML(); var basePath = AppDomain.CurrentDomain.BaseDirectory; - var modelPath = Path.Combine(basePath, "models", "yolov10m.onnx"); + var modelPath = Path.Combine(basePath, "models", "yolo26m.onnx"); // yolov10m.onnx _session = new InferenceSession(modelPath, options); diff --git a/splitter-cli/models/yolov10m.onnx b/splitter-cli/models/yolo26m.onnx similarity index 69% rename from splitter-cli/models/yolov10m.onnx rename to splitter-cli/models/yolo26m.onnx index 7eda40b..5fe97e2 100644 Binary files a/splitter-cli/models/yolov10m.onnx and b/splitter-cli/models/yolo26m.onnx differ