Updated to YOLO v26

This commit is contained in:
Alexander Shabarshov 2026-08-31 10:46:10 +01:00
parent 092bc88d58
commit 593d845b54
4 changed files with 17 additions and 10 deletions

View File

@ -114,14 +114,14 @@ public sealed class PassthroughSplitter : LoggingBase, ISegmentProcessor
{ {
FileName = "ffprobe", FileName = "ffprobe",
Arguments = Arguments =
"-select_streams v " + "-select_streams v " +
$"-read_intervals \"{(segmentStart-0.1).ToString(CultureInfo.InvariantCulture)}%+{window.ToString(CultureInfo.InvariantCulture)}\" " + $"-read_intervals \"{(segmentStart-0.1).ToString(CultureInfo.InvariantCulture)}%+{window.ToString(CultureInfo.InvariantCulture)}\" " +
"-skip_frame nokey " + "-skip_frame nokey " +
"-show_packets " + "-show_packets " +
"-show_entries packet=pts_time,flags " + "-show_entries packet=pts_time,flags " +
"-of compact=p=0 " + "-of compact=p=0 " +
"-v quiet " + "-v quiet " +
$"\"{inputFile}\"", $"\"{inputFile}\"",
RedirectStandardOutput = true, RedirectStandardOutput = true,
UseShellExecute = false, UseShellExecute = false,
CreateNoWindow = true CreateNoWindow = true

View File

@ -21,7 +21,14 @@ It supports batch input, flexible duration formats, rotation, smart face/body-aw
- FFmpeg and FFprobe available in system PATH - FFmpeg and FFprobe available in system PATH
- .NET 10 Runtime or newer - .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 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) - For body detection: [yolov8s.pt · Ultralytics/YOLOv8 at main](https://huggingface.co/Ultralytics/YOLOv8/blob/main/yolov8s.pt)

View File

@ -54,7 +54,7 @@ public sealed class YoloV10ObjectDetector : LoggingBase, IObjectDetector, IDispo
options.AppendExecutionProvider_DML(); options.AppendExecutionProvider_DML();
var basePath = AppDomain.CurrentDomain.BaseDirectory; 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); _session = new InferenceSession(modelPath, options);