Page 1 of 2

Adding models to codeproject

Posted: Sun Feb 11, 2024 10:30 am
by db3520
Hey Guys

Anyone know the folder location where you place pt models in windows?

The codeproject forum only has older info and that file path is no longer legit.

From what I read it seems you have to create a custom model folder.

Also when you add more then one custom model on the AI tab does it get separated by comma?

Thanks in advance guys

Re: Adding models to codeproject

Posted: Sun Feb 11, 2024 11:13 am
by louyo
If you are using a late version of CP/AI using the their install program on your BI system, it should be filled in for you. I am running it on another system via a docker image and fill it in myself. AIR, in my case the folder I reference just contains dummy model files, CP/AI uses its own location but the names have to mirror. Been too long ago for my old-foggy mind to recall exactly.
Yes, separate with commas.
BI and CP/AI working very well here, 2 different locations. All one level or so back.

Re: Adding models to codeproject

Posted: Sun Feb 11, 2024 2:08 pm
by db3520
thanks

its not a big deal but I would like to experiment so if anyone knows what path BI looks for when seeking the custom models please pass it on.

I did create a "custom- models" folder in c:\codeproject but it is not working.

Re: Adding models to codeproject

Posted: Sun Feb 11, 2024 2:37 pm
by MikeLud
Blue Iris uses the Custom Object Detector List Models API to get the list of custom models.

https://www.codeproject.com/ai/docs/api ... ist-models

Re: Adding models to codeproject

Posted: Sun Feb 11, 2024 11:35 pm
by db3520
OK....let me add a clarification

In BI AI tab there is a line for custom models but it is greyed out.

I hear others talk about adding IPcam models to this line but no one says where or how this is done.

Are you saying that when using codeproject that there is no way to add anything to this greyed out line? If so then that I understand and will give up.

Anyone know the correct answer to my questions?

Re: Adding models to codeproject

Posted: Mon Feb 12, 2024 12:49 am
by MikeLud
The custom model list should auto populate. If it is empty restart Blue Iris service and it should look like the below

Screenshot 2024-02-11 194635.jpg
Screenshot 2024-02-11 194635.jpg (229.11 KiB) Viewed 1036 times

Re: Adding models to codeproject

Posted: Mon Feb 12, 2024 4:13 am
by db3520
not sure where you found your custom model but that one is not default by codeproject......so please explan where you found that and also how you loaded it. BTW....I am using latest CP version....maybe yours is older and has different file structure.

Mine is listed below

Re: Adding models to codeproject

Posted: Mon Feb 12, 2024 4:38 am
by MikeLud
Did you restart Blue Iris service? I am on the latest CodeProject.AI. Follow the bellow steps and this should populate the custom model list. FYI I am the creator of all the custom models.
  • Uncheck Auto start/stop with Blue Iris
  • Restarting Blue Iris service
Screenshot 2024-02-11 233303.jpg
Screenshot 2024-02-11 233303.jpg (190.13 KiB) Viewed 1022 times
service.jpg
service.jpg (176.86 KiB) Viewed 1022 times
custom model folder.jpg
custom model folder.jpg (92.3 KiB) Viewed 1022 times

Re: Adding models to codeproject

Posted: Mon Feb 12, 2024 4:51 am
by MikeLud
Also once you uncheck Auto start/stop with Blue Iris and restart Blue Iris service Enable GPU for the Object Detection (YOLOv5 .NET) module. This will allow the Object Detection (YOLOv5 .NET) module to use whatever GPU you have installed.

Screenshot 2024-02-11 234413.jpg
Screenshot 2024-02-11 234413.jpg (217.89 KiB) Viewed 1020 times

Re: Adding models to codeproject

Posted: Mon Feb 12, 2024 6:51 pm
by TimG
not sure where you found your custom model but that one is not default by codeproject......so please explan where you found that and also how you loaded it. BTW....I am using latest CP version....maybe yours is older and has different file structure.
Another use for a facepalm emoji :lol: