New CodeProject.AI Object Detection (YOLO11 .NET) Module

Does it work as a -v5 model with Mike's new module?
I put a bluetooth motion sensor on my mailbox so I haven't used that model in awhile. For it to work with Mike's new model he would have to convert it. I don't use the full delivery model because there is to much traffic on my street.
 
Last edited:
Yeah that's what I thought. I hope he converts the delivery model, or can suggest a way to use a different module to use the delivery model. I have all the different delivery trucks coming up my driveway and it would be nice to know delivery vehicle vs. passenger.
 
You can run both at the same time and compare.

That being said, I believe v11 only detects people / vehicle and anything that doesn't look like that doesn't get identified.
 
Last edited:
  • Like
Reactions: Skinny1
I hope no news is good news. To all how is Object Detection (YOLO11 .NET) 1.4.0 module working for everyone?
Nailed it! Vehicle and person detection is great. The ones I've got running -v5 give a bit more detail truck vs. vehicle, but v11 is more confident it's a vehicle than v5 is that it's a truck.

Great work Mike!
 
  • Like
Reactions: MikeLud1
I hope no news is good news. To all how is Object Detection (YOLO11 .NET) 1.4.0 module working for everyone?
For me v1.4.0 is crashing and I don't have any object detection since I updated, just checked today and it crashed and it stays stopped after that.
Just swapped the appsettings, didn't change anything else, and the previous version was working.
Here is the exception message, in case it helps.
Bash:
17:46:14:ObjectDetectionYOLO11Net.exe: CodeProject.AI.Modules.ObjectDetection.YOLO11.ObjectDetector[0]
17:46:14:ObjectDetectionYOLO11Net.exe:       ObjectDetection (.NET YOLO11) setting ExecutionProvider = "DirectML" with device 0
17:46:26:ObjectDetectionYOLO11Net.exe: Fatal error. 0xC0000005
17:46:26:ObjectDetectionYOLO11Net.exe:    at Microsoft.ML.OnnxRuntime.InferenceSession.Init(Byte[], Microsoft.ML.OnnxRuntime.SessionOptions, Microsoft.ML.OnnxRuntime.PrePackedWeightsContainer)
17:46:26:ObjectDetectionYOLO11Net.exe:    at Microsoft.ML.OnnxRuntime.InferenceSession..ctor(Byte[], Microsoft.ML.OnnxRuntime.SessionOptions)
17:46:26:System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e: ..ctor(System.String, Microsoft.ML.OnnxRuntime.SessionOptions)
17:46:26:ObjectDetectionYOLO11Net.exe:    at CodeProject.AI.Modules.ObjectDetection.YOLO11.ObjectDetector..ctor(System.String, Microsoft.Extensions.Logging.ILogger`1, Int32)
17:46:26:ObjectDetectionYOLO11Net.exe:    at CodeProject.AI.Modules.ObjectDetection.YOLO11.ObjectDetectionYOLO11ModuleRunner.GetDetector(System.String, Boolean)
17:46:26:ObjectDetectionYOLO11Net.exe:    at CodeProject.AI.Modules.ObjectDetection.YOLO11.ObjectDetectionYOLO11ModuleRunner.DoDetection(System.String, CodeProject.AI.SDK.Common.RequestFormFile, Single)
17:46:26:ObjectDetectionYOLO11Net.exe:    at CodeProject.AI.Modules.ObjectDetection.YOLO11.ObjectDetectionYOLO11ModuleRunner.Process(CodeProject.AI.SDK.Backend.BackendRequest)
17:46:26:ObjectDetectionYOLO11Net.exe:    at CodeProject.AI.SDK.Backend.ModuleRunnerBase.ProcessModuleCommands(CodeProject.AI.SDK.Backend.BackendRequest)
17:46:26:ObjectDetectionYOLO11Net.exe:    at CodeProject.AI.SDK.Backend.ModuleRunnerBase+d__57.MoveNext()
 
For me v1.4.0 is crashing and I don't have any object detection since I updated, just checked today and it crashed and it stays stopped after that.
Just swapped the appsettings, didn't change anything else, and the previous version was working.
Here is the exception message, in case it helps.
Bash:
17:46:14:ObjectDetectionYOLO11Net.exe: CodeProject.AI.Modules.ObjectDetection.YOLO11.ObjectDetector[0]
17:46:14:ObjectDetectionYOLO11Net.exe:       ObjectDetection (.NET YOLO11) setting ExecutionProvider = "DirectML" with device 0
17:46:26:ObjectDetectionYOLO11Net.exe: Fatal error. 0xC0000005
17:46:26:ObjectDetectionYOLO11Net.exe:    at Microsoft.ML.OnnxRuntime.InferenceSession.Init(Byte[], Microsoft.ML.OnnxRuntime.SessionOptions, Microsoft.ML.OnnxRuntime.PrePackedWeightsContainer)
17:46:26:ObjectDetectionYOLO11Net.exe:    at Microsoft.ML.OnnxRuntime.InferenceSession..ctor(Byte[], Microsoft.ML.OnnxRuntime.SessionOptions)
17:46:26:System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e: ..ctor(System.String, Microsoft.ML.OnnxRuntime.SessionOptions)
17:46:26:ObjectDetectionYOLO11Net.exe:    at CodeProject.AI.Modules.ObjectDetection.YOLO11.ObjectDetector..ctor(System.String, Microsoft.Extensions.Logging.ILogger`1, Int32)
17:46:26:ObjectDetectionYOLO11Net.exe:    at CodeProject.AI.Modules.ObjectDetection.YOLO11.ObjectDetectionYOLO11ModuleRunner.GetDetector(System.String, Boolean)
17:46:26:ObjectDetectionYOLO11Net.exe:    at CodeProject.AI.Modules.ObjectDetection.YOLO11.ObjectDetectionYOLO11ModuleRunner.DoDetection(System.String, CodeProject.AI.SDK.Common.RequestFormFile, Single)
17:46:26:ObjectDetectionYOLO11Net.exe:    at CodeProject.AI.Modules.ObjectDetection.YOLO11.ObjectDetectionYOLO11ModuleRunner.Process(CodeProject.AI.SDK.Backend.BackendRequest)
17:46:26:ObjectDetectionYOLO11Net.exe:    at CodeProject.AI.SDK.Backend.ModuleRunnerBase.ProcessModuleCommands(CodeProject.AI.SDK.Backend.BackendRequest)
17:46:26:ObjectDetectionYOLO11Net.exe:    at CodeProject.AI.SDK.Backend.ModuleRunnerBase+d__57.MoveNext()
Can you post your System Info, like the below

1762458370323.png