machinelearning icon indicating copy to clipboard operation
machinelearning copied to clipboard

ObjectDetection-Onnx System.AccessViolationException: 'Attempted to read or write protected memory.

Open eddylai opened this issue 1 year ago • 0 comments

System Information (please complete the following information):

  • OS & Version: Windows 10/11
  • ML.NET Version: ML.NET v1.6
  • .NET Version: .NET 8.0

Describe the bug bulild and run the download OnnxObjectDetectionApp code got exception: System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' (Visual Studo 2022 17.13.0)

To Reproduce Steps to reproduce the behavior:

  1. open project samples\csharp\end-to-end-apps\ObjectDetection-Onnx\OnnxObjectDetection.sln
  2. buld and run OnnxObjectDetectionApp
  3. See error

Expected behavior renders a live-stream of the device's web cam, runs the video frames through an object detection model using ML.NET, and paints bounding boxes with labels indicating the objects detected in real-time.

Screenshots, Code, Sample Projects

Image

eddylai avatar Jan 08 '25 05:01 eddylai