Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Artificial Intelligence
  3. CUDA Errors with YOLOv5 Object Detection CPAI 2.5.x / Blue Iris – Seeking Insights

CUDA Errors with YOLOv5 Object Detection CPAI 2.5.x / Blue Iris – Seeking Insights

Scheduled Pinned Locked Moved Artificial Intelligence
helpjsonperformanceloungeworkspace
6 Posts 3 Posters 36 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zz0K2
    wrote on last edited by
    #1

    I'm reaching out to share a perplexing issue I've encountered with the integration CPAI with my BI setup, hoping to find if anyone else has experienced something similar or could offer any insights. The problem first manifested around 01:45 am on 14/02/2024, and despite troubleshooting efforts, it recurred this morning, indicating a persistent underlying issue. Initially, the system logs from 14th February showed an error related to CUDA, specifically mentioning "an illegal memory access was encountered". This issue caused a loop of errors until a system reboot was performed at 9:06 am. Here is the exact log entry for reference:

    2024-02-14 01:39:57: Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command 'custom' in Object Detection (YOLOv5 6.2)
    2024-02-14 01:39:57: Object Detection (YOLOv5 6.2): Detecting using ipcam-combined in Object Detection (YOLOv5 6.2)
    2024-02-14 01:39:57: Response received (#reqid 85bde494-89d3-429d-a21b-c10b9430c5a8 for command custom)
    2024-02-14 01:39:57: Object Detection (YOLOv5 6.2): [RuntimeError] : Traceback (most recent call last):
    File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect.py", line 141, in do_detection
    det = detector(img, size=640)
    File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1190, in _call_impl
    return forward_call(*input, **kwargs)
    File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
    File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\yolov5\models\common.py", line 669, in forward
    with dt[0]:
    File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\yolov5\utils\general.py", line 158, in __enter__
    self.start = self.time()
    File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\yolov5\utils\general.py", line 167, in time
    torch.cuda.synchronize()
    File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\cuda\__init__.py", line 566, in synchronize
    return torch._C._cuda_synchronize()
    RuntimeError: CUDA error: an illegal memory access was encountered
    CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorr

    L 1 Reply Last reply
    0
    • Z Zz0K2

      I'm reaching out to share a perplexing issue I've encountered with the integration CPAI with my BI setup, hoping to find if anyone else has experienced something similar or could offer any insights. The problem first manifested around 01:45 am on 14/02/2024, and despite troubleshooting efforts, it recurred this morning, indicating a persistent underlying issue. Initially, the system logs from 14th February showed an error related to CUDA, specifically mentioning "an illegal memory access was encountered". This issue caused a loop of errors until a system reboot was performed at 9:06 am. Here is the exact log entry for reference:

      2024-02-14 01:39:57: Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command 'custom' in Object Detection (YOLOv5 6.2)
      2024-02-14 01:39:57: Object Detection (YOLOv5 6.2): Detecting using ipcam-combined in Object Detection (YOLOv5 6.2)
      2024-02-14 01:39:57: Response received (#reqid 85bde494-89d3-429d-a21b-c10b9430c5a8 for command custom)
      2024-02-14 01:39:57: Object Detection (YOLOv5 6.2): [RuntimeError] : Traceback (most recent call last):
      File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect.py", line 141, in do_detection
      det = detector(img, size=640)
      File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1190, in _call_impl
      return forward_call(*input, **kwargs)
      File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
      return func(*args, **kwargs)
      File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\yolov5\models\common.py", line 669, in forward
      with dt[0]:
      File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\yolov5\utils\general.py", line 158, in __enter__
      self.start = self.time()
      File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\yolov5\utils\general.py", line 167, in time
      torch.cuda.synchronize()
      File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\cuda\__init__.py", line 566, in synchronize
      return torch._C._cuda_synchronize()
      RuntimeError: CUDA error: an illegal memory access was encountered
      CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorr

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      As already suggested, please post your question in the CodeProject.AI Discussions[^] forum.

      Z T 2 Replies Last reply
      0
      • L Lost User

        As already suggested, please post your question in the CodeProject.AI Discussions[^] forum.

        Z Offline
        Z Offline
        Zz0K2
        wrote on last edited by
        #3

        I've posted in the CodeProject.AI thank you, how do I delete this post I cannot see any option allowing me to delete?

        L 1 Reply Last reply
        0
        • Z Zz0K2

          I've posted in the CodeProject.AI thank you, how do I delete this post I cannot see any option allowing me to delete?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          That's OK, you can leave this post here so other people can see where to go for help.

          1 Reply Last reply
          0
          • L Lost User

            As already suggested, please post your question in the CodeProject.AI Discussions[^] forum.

            T Offline
            T Offline
            trønderen
            wrote on last edited by
            #5

            How does the CodeProject.AI Discussions forum relate to "ordinary" Artificial Intelligence forum in the General Programming group of CP? Which topics or kinds of questions should go in each of them?

            Religious freedom is the freedom to say that two plus two make five.

            L 1 Reply Last reply
            0
            • T trønderen

              How does the CodeProject.AI Discussions forum relate to "ordinary" Artificial Intelligence forum in the General Programming group of CP? Which topics or kinds of questions should go in each of them?

              Religious freedom is the freedom to say that two plus two make five.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              CodeProject.AI is a specific project run by the CodeProject staff. So any question related to this project and its usage should be posted in its own discussion forum. Mainly because that is where the project team go to look for questions. The general AI forum is for general, i.e. non-CodeProject.AI, questions. If you look on the CodeProject home page at the picture at the top, it has a link to the correct forum.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups