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. The Lounge
  3. CLI or API to switch YOLO model size

CLI or API to switch YOLO model size

Scheduled Pinned Locked Moved The Lounge
toolsjsontutorialworkspace
9 Posts 5 Posters 0 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.
  • J Offline
    J Offline
    joeyjoeC
    wrote on last edited by
    #1

    My current configuration for utilizing CAI does not allow me to use custom models at this time (SYNOAI). My goal is to detect people, cars, and animals for which I have obtain by using "CodeProject.AI-Custom-IPcam-Models". I find that "IPcam-combined" seems to miss many positive hits during the night, and "IPcam-dark" picks them up. I have verified with CAI explorer and sure enough it does not pick up many items at night unless I use the "IPCAM-dark" Currently (as a workaround) have been replaced the YOLO small model with "IPcam-combined" model file and I replaced YOLO medium model with "IPCAM-dark" file. This seems to provide me with what I am looking for. So manually I have been switching the YOLO model from small/medium for day/night detection. I would like to see if there was a way to script this so I can toggle the YOLO model size via a scheduler, or any other possible suggestions on how to handle this. THANKS!!!

    J OriginalGriffO C 3 Replies Last reply
    0
    • J joeyjoeC

      My current configuration for utilizing CAI does not allow me to use custom models at this time (SYNOAI). My goal is to detect people, cars, and animals for which I have obtain by using "CodeProject.AI-Custom-IPcam-Models". I find that "IPcam-combined" seems to miss many positive hits during the night, and "IPcam-dark" picks them up. I have verified with CAI explorer and sure enough it does not pick up many items at night unless I use the "IPCAM-dark" Currently (as a workaround) have been replaced the YOLO small model with "IPcam-combined" model file and I replaced YOLO medium model with "IPCAM-dark" file. This seems to provide me with what I am looking for. So manually I have been switching the YOLO model from small/medium for day/night detection. I would like to see if there was a way to script this so I can toggle the YOLO model size via a scheduler, or any other possible suggestions on how to handle this. THANKS!!!

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      There is a AI forum somewhere. Obviously there is a way to switch it since you yourself did it. So whatever that process is you could just create a scheduler based on a dusk/dawn timer. You will need to find a dusk/dawn source of course. You will probably find using an offset from that will work better also. I wouldn't be surprised if camera placement also would impact that. Or perhaps just run both and feed the output into a single detector.

      1 Reply Last reply
      0
      • J joeyjoeC

        My current configuration for utilizing CAI does not allow me to use custom models at this time (SYNOAI). My goal is to detect people, cars, and animals for which I have obtain by using "CodeProject.AI-Custom-IPcam-Models". I find that "IPcam-combined" seems to miss many positive hits during the night, and "IPcam-dark" picks them up. I have verified with CAI explorer and sure enough it does not pick up many items at night unless I use the "IPCAM-dark" Currently (as a workaround) have been replaced the YOLO small model with "IPcam-combined" model file and I replaced YOLO medium model with "IPCAM-dark" file. This seems to provide me with what I am looking for. So manually I have been switching the YOLO model from small/medium for day/night detection. I would like to see if there was a way to script this so I can toggle the YOLO model size via a scheduler, or any other possible suggestions on how to handle this. THANKS!!!

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        You probably want to raise this in the dedicated forum: CodeProject.AI Discussions[^] - you'll get people who know and / or use CP.AI and less abuse from people who read the bit at the top of the page about not posting programming questions in the lounge ...

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        J 1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          You probably want to raise this in the dedicated forum: CodeProject.AI Discussions[^] - you'll get people who know and / or use CP.AI and less abuse from people who read the bit at the top of the page about not posting programming questions in the lounge ...

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

          J Offline
          J Offline
          joeyjoeC
          wrote on last edited by
          #4

          good point. ADMINS could you move my post to forum: CodeProject.AI Discussions

          OriginalGriffO S 2 Replies Last reply
          0
          • J joeyjoeC

            good point. ADMINS could you move my post to forum: CodeProject.AI Discussions

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #5

            @sean-ewington Could you oblige please?

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            1 Reply Last reply
            0
            • J joeyjoeC

              good point. ADMINS could you move my post to forum: CodeProject.AI Discussions

              S Offline
              S Offline
              Sean Ewington
              wrote on last edited by
              #6

              The CodeProject.AI Server discussion board is actually part of an article, rather being a forum like this one. Unfortunately, we can't move it. I haven't set up CodeProject.AI Server with SynoAI yet. I'm going to have to put this on my todo list, mess around with it, and possibly write an article on how to use it fully.

              Thanks, Sean Ewington CodeProject

              J 1 Reply Last reply
              0
              • J joeyjoeC

                My current configuration for utilizing CAI does not allow me to use custom models at this time (SYNOAI). My goal is to detect people, cars, and animals for which I have obtain by using "CodeProject.AI-Custom-IPcam-Models". I find that "IPcam-combined" seems to miss many positive hits during the night, and "IPcam-dark" picks them up. I have verified with CAI explorer and sure enough it does not pick up many items at night unless I use the "IPCAM-dark" Currently (as a workaround) have been replaced the YOLO small model with "IPcam-combined" model file and I replaced YOLO medium model with "IPCAM-dark" file. This seems to provide me with what I am looking for. So manually I have been switching the YOLO model from small/medium for day/night detection. I would like to see if there was a way to script this so I can toggle the YOLO model size via a scheduler, or any other possible suggestions on how to handle this. THANKS!!!

                C Offline
                C Offline
                Chris Maunder
                wrote on last edited by
                #7

                [Configuring Module Settings - CodeProject.AI Server v2.5.0](https://www.codeproject.com/AI/docs/api/module\_settings.html#option-5-via-the-settings-api) may help.

                cheers Chris Maunder

                J 1 Reply Last reply
                0
                • S Sean Ewington

                  The CodeProject.AI Server discussion board is actually part of an article, rather being a forum like this one. Unfortunately, we can't move it. I haven't set up CodeProject.AI Server with SynoAI yet. I'm going to have to put this on my todo list, mess around with it, and possibly write an article on how to use it fully.

                  Thanks, Sean Ewington CodeProject

                  J Offline
                  J Offline
                  joeyjoeC
                  wrote on last edited by
                  #8

                  I can provide a write up for CAI and synoai to you. There is not much involved since at this time you only really need to point to the AI serverIP:port.

                  1 Reply Last reply
                  0
                  • C Chris Maunder

                    [Configuring Module Settings - CodeProject.AI Server v2.5.0](https://www.codeproject.com/AI/docs/api/module\_settings.html#option-5-via-the-settings-api) may help.

                    cheers Chris Maunder

                    J Offline
                    J Offline
                    joeyjoeC
                    wrote on last edited by
                    #9

                    Thank Chris. I just noticed that version in the download area. I will give it a try!

                    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