Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.5.44 Custom models on "AiServerURL's" always saves as Linked. #334

Open
originalcom opened this issue Jun 11, 2023 · 5 comments
Open

2.5.44 Custom models on "AiServerURL's" always saves as Linked. #334

originalcom opened this issue Jun 11, 2023 · 5 comments

Comments

@originalcom
Copy link

With the latest update (2.5.44) the "AI server url's" in settings when added or modified always revert to "Use only as Linked servers" ticked on restart. Reverting to 2.2.24 for now. I've tried editing the settings file but it still reverts to ticked.
linked

@VorlonCD
Copy link
Owner

First, animal should only be linked anyway. You would always still want to detect people, etc in the main server, right? You would just click "Link/combine results" in your primary server config and pick Animal.

But I think the problem might be that your use of the Deepstack TAB is causing the server to be re-created every start. I changed the way it detects duplicate servers so I need to get back into the code and tweak that.

Rather than using deepstack, use CodeProject AI "IPCAM Animal" server option in the latest AITOOL version. Unlike deepstack this is being actively developed and has all the IPCAM options built in along with GPU, Docker versions, etc. Its really much better at this point.

Uninstall deepstack and install this:
https://www.codeproject.com/Articles/5322557/CodeProject-AI-Server-AI-the-easy-way

@VorlonCD
Copy link
Owner

oh, also you could try turning off "Auto Add" in Deepstack tab if you need to keep using it.

@originalcom
Copy link
Author

Unfortunately unticking "Auto add doesn't" seem to work as it still re adds an entry every time it is starts with the option for linked servers ticked. I've tried CodeProjectAI but it's really slow on my server. This is one of 3 dedicated AI/BI combos I use - this one watches a pond for animals/birds over a certain type & size and triggers "deterrents". I don't want it as a linked server as the Animals.PT is much quicker without having to search for people etc. I'll have to stay on the old version for now. Thanks for your suggestions anyway.

@VorlonCD
Copy link
Owner

Ok let me get back into the code when I have a chance.

FYI I found that depending on the hardware, there can be a big difference in speed between the available object detection modules. Try each and compare speed:

  • YOLOv5 .NET
  • YOLOv5 6.2
  • TF-Lite - This one can use Google coral accelerator usb device on some machines like raspberry pi and ARM64. Its FAST but I found detection wasnt quite as good as the others.

Although I dont know how exactly those relate to the IPCAM custom modules or if it changes performance for those.

@originalcom
Copy link
Author

Thank you again. I am currently installing CPAI for another go and will try what you suggest. I seem to remember that the custom models were only available in the .Net version. Other alternative is I may upgrade the PC ;-)

VorlonCD added a commit that referenced this issue Mar 9, 2024
…. You may need to install from here: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-8.0.1-windows-x64-installer

* Fixed issue where an AI Server may be stuck "InUse" if you close AITOOL while it was in use.
* The next few items can help reduce annoying or unessessary errors sent to telegram:
* Fix blueiris httpclient trigger timeout error in cases where mutiple triggers have been made in 'queued' mode.  (Prevent concurrent trigger calls to the same servername/port - The trigger call to blue iris will be skipped if it is currently already working on a trigger - Why does it take so long?  Sometimes it takes over a minute to get done triggering?)
* HTTP Trigger timeout defaults to 120 seconds rather than 55
* Move trigger URL calls to after sound and a few other things for less of delay with other notification such as sound when running in a home office  (Blueiris can take forever to finish its http trigger, so we dont wait for it now)
* IgnoreConnectionError:   JSON setting to ignore errors (not send them via telegram, etc if we cant even get a ping resonse from the server.  This might be useful when a computer is only on certain hours of the day without setting a specific URL time range.
* Checkbox in URL edit screen "Ignore if offline".   When this is enabled, it will ping the server first and if the ping fails it will silently ignore and skip the URL.  This is useful for when a server is a machine that may go to sleep and the time schedule is not consistent enough.  In AI Servers list > LastSkippedReason column, you will see "NotOnline" when this happens.   LastSkippedReason shows most recent reasons first.
* AI Server list tweaked to provide more debug info about why it was not used and make it more threadsafe
* AI Server list Double-click AI server to edit
* AI Server list up/down now keeps selection
* AI Server list now correctly refreshes every 1 so you can see it working live
* Codeproject.AI now sometimes returns a "the request timed out" error.   If you disable the "Error" checkbox when editing a SERVER, it will prevent this from being an error that is sent via telegram, etc.  (Because I was starting to find it annoying) - I think it happened when a custom IPCAM model and the regular model were being accessed at the same time.
* We used to look for Debug: error: warn: etc anywhere within the log line.  Now its only within the first 6 chars not including dots, dashes, spaces.  This might reduce less serious things from being sent to telegram, etc.
* Fix to fully respect unchecking AUTO ADD on the deepstack tab #334
* Made sqldatabase history connection a little more reliable.   If it gets an error on initial connection it will try to revert to a backup copy.  If that failes it will delete the database and recreate it.
* Exit right-click tray icon
* New AI icon generated by ChatGPT  (Of course!)
* For refinement servers, you can now use 'Animal', 'Person', people or 'Vehicle' in addition to actual object names
* Pause and resume right-click tray icon
* Better error checking when trying to activate blue iris window as non admin
* Fix crash on camera properties if you dont have a camera selected
* Fix triggering object list sometimes empty
* Fix ObjectListView issue, .net 7/8 changed virtualListSize to _virtualListSize
* Code cleanup, update to latest nuget packages, fixing a few security issues
* Added more return properties for Codeproject.ai response (not used yet)
* Added Action time min/max ms to status bar
* Is it worth trying to integrate other cloud vision AI tools when we have a decent local CodeProject.AI now?   "Google.Cloud.Vision", "Azure AI Vision", "Imagga", etc?
VorlonCD added a commit to VorlonCD/ObjectListView.NET6 that referenced this issue Mar 9, 2024
…. You may need to install from here: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-8.0.1-windows-x64-installer

* Fixed issue where an AI Server may be stuck "InUse" if you close AITOOL while it was in use.
* The next few items can help reduce annoying or unessessary errors sent to telegram:
* Fix blueiris httpclient trigger timeout error in cases where mutiple triggers have been made in 'queued' mode.  (Prevent concurrent trigger calls to the same servername/port - The trigger call to blue iris will be skipped if it is currently already working on a trigger - Why does it take so long?  Sometimes it takes over a minute to get done triggering?)
* HTTP Trigger timeout defaults to 120 seconds rather than 55
* Move trigger URL calls to after sound and a few other things for less of delay with other notification such as sound when running in a home office  (Blueiris can take forever to finish its http trigger, so we dont wait for it now)
* IgnoreConnectionError:   JSON setting to ignore errors (not send them via telegram, etc if we cant even get a ping resonse from the server.  This might be useful when a computer is only on certain hours of the day without setting a specific URL time range.
* Checkbox in URL edit screen "Ignore if offline".   When this is enabled, it will ping the server first and if the ping fails it will silently ignore and skip the URL.  This is useful for when a server is a machine that may go to sleep and the time schedule is not consistent enough.  In AI Servers list > LastSkippedReason column, you will see "NotOnline" when this happens.   LastSkippedReason shows most recent reasons first.
* AI Server list tweaked to provide more debug info about why it was not used and make it more threadsafe
* AI Server list Double-click AI server to edit
* AI Server list up/down now keeps selection
* AI Server list now correctly refreshes every 1 so you can see it working live
* Codeproject.AI now sometimes returns a "the request timed out" error.   If you disable the "Error" checkbox when editing a SERVER, it will prevent this from being an error that is sent via telegram, etc.  (Because I was starting to find it annoying) - I think it happened when a custom IPCAM model and the regular model were being accessed at the same time.
* We used to look for Debug: error: warn: etc anywhere within the log line.  Now its only within the first 6 chars not including dots, dashes, spaces.  This might reduce less serious things from being sent to telegram, etc.
* Fix to fully respect unchecking AUTO ADD on the deepstack tab VorlonCD/bi-aidetection#334
* Made sqldatabase history connection a little more reliable.   If it gets an error on initial connection it will try to revert to a backup copy.  If that failes it will delete the database and recreate it.
* Exit right-click tray icon
* New AI icon generated by ChatGPT  (Of course!)
* For refinement servers, you can now use 'Animal', 'Person', people or 'Vehicle' in addition to actual object names
* Pause and resume right-click tray icon
* Better error checking when trying to activate blue iris window as non admin
* Fix crash on camera properties if you dont have a camera selected
* Fix triggering object list sometimes empty
* Fix ObjectListView issue, .net 7/8 changed virtualListSize to _virtualListSize
* Code cleanup, update to latest nuget packages, fixing a few security issues
* Added more return properties for Codeproject.ai response (not used yet)
* Added Action time min/max ms to status bar
* Is it worth trying to integrate other cloud vision AI tools when we have a decent local CodeProject.AI now?   "Google.Cloud.Vision", "Azure AI Vision", "Imagga", etc?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants