Code project suddenly "No custom models found"

Post Reply
Ferguson
Posts: 97
Joined: Sat Feb 22, 2020 1:32 am

Code project suddenly "No custom models found"

Post by Ferguson »

I did a windows update a couple days ago, and finally realized I was not getting alerts. I did not update BlueIris (5.9.9.25) or Codeproject (2.9.5).

Upon checking further the candidate images are showing "ipcam-general" and "no custom models found".

If I go to the codeproject dashboard under YoloV8 it shows all three model downloads as "cached" so it thinks it has them.

I downloaded and installed all three choices there. Went in and de-selected and re-selected in BI, and still get the same error (on the AI Inspector page of status).

Shutdown of Blue Iris, CPAI, restart CPAI, restart BI - same error.

If I turn off custom models it runs without error but finds nothing despite a big person being in clear view.

Interestingly now in the Blue Iris Settings, AI, under the menu for custom models it only shows ipcam-general now (there were 2 before (also license-plate), and I swear there used to be quite a few more). If I look in C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\custom-models there are two files there, ipcam-general.pt and license-plate.pt (dated 12/13/2023 and 2/28/2024 respectively).

This was all stable prior to the windows update and reboot (and I didn't update anything but regular windows, version 10pro x 64 by the way).

Anyone have any idea what to look for? I'm not sure how to confirm if yoloV8 can actually "see" the model or if something about the way BI is calling it is causing it not to use it. It does show successful if I re-download it from the AI dashboard.

Any ideas what happened or how to fix it? Or at least a way to definitively show if it's a CPAI issue so I can report to them (despite working for months at that version).

Linwood
Ferguson
Posts: 97
Joined: Sat Feb 22, 2020 1:32 am

Re: Code project suddenly "No custom models found"

Post by Ferguson »

As an update, I removed the YoloV8 module, then re-installed it, re-downloaded the models, restarted BI, turned models back on with ipcam-general selected (license plate is still not appearing in the BI interface) and it still says "ipcam-general" and "No custom models found" in the AI Inspector.
Ferguson
Posts: 97
Joined: Sat Feb 22, 2020 1:32 am

Re: Code project suddenly "No custom models found"

Post by Ferguson »

And a bit more. I found a note pointing to this:

https://github.com/MikeLud/CodeProject. ... m%20Models

which recommended it instead as a custom model. I downloaded it, put it in the appropriate place, and restarted CodeProject AI, the restarted BI. BI doesn't see it. Nor does it see the license plate model.

So I deleted the two that were there before leaving just the general one from the above repo, and restarted CPAI and restarted BI, it still shows only ipcam-general, no change, and gives the same error.

So I deleted all PT files form the custom model directory, restarted CPAI, restart BI, ran BI and looked in the AI selection of models and it still shows the ipcam-general model despite it being deleted.

The BI does and has showed only "responding" for AI.

It really looks like BI is not properly pulling the modes from CPAI?

All from what should have just been a windows reboot, though I guess the windows update could have done something.

PS. This is weird. Windows Update history shows last install 3/1, I was really certain it was later than that, and it also shows Updates installed were 2024-12 CU, 2025-02 .Net 9.0.2, and 2025-01 CU, and in particular it does not show 2025-02 (though it shows it needs it now). I'm going to install that and get it clean and see what happens.

PPS. That's kind of interesting. After this restart there's nothing in custom-models. Nothing at all. In the dashboard for CAPI under YOLOv8 info:

Code: Select all

2025-03-07 19:27:10: Downloading YOLOv8 Object Custom models...already exists...Expanding...done.
2025-03-07 19:27:10: Copying contents of objectdetection-custom-yolov8-pt-m.zip to custom-models...done
2025-03-07 19:27:21: Self test: Self-test passed
That zip file is in the ObjectDetectionYOLOv8 folder under "assets". So something cleared out the file I put in the model, and also makes it appear that it unzipped it but nothing is there. I am not running any special AV that would have done it so far as I know, just defender and everything off. I put the repo version back and rebooted -- it was still there. I reran the dashboard download for custom options now have three separate entries there. Restarted BI and it shows only the one. Rebooted server - shows only one (all three still there). No idea what's going on, but this is new behavior. I'm just not sure new from what.
Ferguson
Posts: 97
Joined: Sat Feb 22, 2020 1:32 am

Re: Code project suddenly "No custom models found"

Post by Ferguson »

Sorry for the length... final note then I quit for the night.

I stopped YOLOv8. I installed YOLOV5 6.2. It came with six custom modules in the folder. I restarted BI.

BI now shows "ipcam-general" as the only available model, but it does use it and does now detect people. So this is a workaround.

But why does BI still not see the others, nor work with v8 that was working fine a day or few ago.

Since I can get alerts again, at least in a single test, I'm going to be and will tackle in the morning.
Ferguson
Posts: 97
Joined: Sat Feb 22, 2020 1:32 am

Re: Code project suddenly "No custom models found"

Post by Ferguson »

Let me put this to bed.

This appears to have been a BI bug.

In another forum (which in turn pointed to yet another) it was suggested to upgrade from 5.9.9.25 to 5.9.9.28.

I did so, de-installed the YoloV5.6 and put V8 back in (Hint: you have to reboot, not just stop start, or it keeps using 5.6), and with the new BI it was working again.

Why it stopped I am unsure. I don't have BI auto-updating, so not sure what changed to make it break, but once broken I could not get 5.9.9.25 to work. I didn't see anything in the .25->.28 release notes to explain the fix; I guess it is possible just that act of upgrading caused it to redo/reset something. Then again release notes are not always very complete.

So... BI issue, not CodeProject issue apparently, now fixed.
Post Reply