Added Dark Model... process times slower?

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,046
Reaction score
950
I'm testing the Dark Model. Overall, it seems to give higher percentage captures for Cars and People during night AND day. The only problem is that BI takes roughly two times longer to alert while running the custom model. Is that to be expected? Thanks!

Screen Shot 2021-10-12 at 9.27.30 AM.png
 

sebastiantombs

Known around here
Joined
Dec 28, 2019
Messages
11,511
Reaction score
27,695
Location
New Jersey
Think abut what DS is actually doing. First it scans the standard, built-in, model. Then it scans the dark.pt model. It scans two models for every capture it is sent which will effect scan time, AKA detection time.
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,984
Reaction score
48,723
Location
USA
Yes because it is running two models.

I found that dark works better even during the day. So in the camera AI tab under Custom models, put in Objects:0 and it will skip the default detection. Or put in dark:0 during the day so it only uses default.

Only use one model and the detection will come down. The :0 tells it to ignore that model.
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,046
Reaction score
950
Yes because it is running two models.

I found that dark works better even during the day. So in the camera AI tab under Custom models, put in Objects:0 and it will skip the default detection. Or put in dark:0 during the day so it only uses default.

Only use one model and the detection will come down. The :0 tells it to ignore that model.
Sounds like a good plan. Like I posted, dark.pt seems to work better both day and night. I'll go to each camera and enter Objects:0. Like this?

Screen Shot 2021-10-12 at 11.58.28 AM.png
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,984
Reaction score
48,723
Location
USA
I like it.

One thing I do, and it is dependent on your field of view, is I make one of the zones for DS so that DS isn't analyzing every movement, but focuses on the areas I am concerned with. So for most of my cameras using DS, I only have one zone checked. It also appears DS runs faster that way without them all checked, but that is just based on casual observations.

I have also unchecked the begin analysis on leading edge to give the object just a tad bit of time to get into the image, but this is field of view dependent too.

But if yours are capturing what you want, then leave as is.
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,046
Reaction score
950
Adding objects:0 isn't working for me. I keep getting "nothing found" while testing. I remove it and leave that field blank I get results from both models. Any ideas?
 
Last edited:

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,984
Reaction score
48,723
Location
USA
First try a restart of the camera in BI and if that doesn't do it, then do a reboot. I remember one of mine didn't take at first either until I did that.

Or try dark,objects:0

I have seen it both ways with these updates
 
Last edited:

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,984
Reaction score
48,723
Location
USA
One of mine just has objects in the custom model box and the dark doesn't run.

As you can see there doesn't seem to be consistency with this yet.
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,046
Reaction score
950
Putting dark,objects:0 worked but for some reason it caused server errors. Until I made this change, I never received those before.

1 10/12/2021 6:37:33.100 PM Front_Porch_Cam DeepStack: Server error 100
0 10/12/2021 6:37:33.100 PM Front_Porch_Cam DeepStack: Alert cancelled [DeepStack: 100] 15007ms
1 10/12/2021 6:37:33.665 PM Driveway_Cam DeepStack: Server error 100
0 10/12/2021 6:37:33.665 PM Driveway_Cam DeepStack: Alert cancelled [DeepStack: 100] 13843ms
1 10/12/2021 6:37:33.710 PM Garage_Cam DeepStack: Server error 100
0 10/12/2021 6:37:33.710 PM Garage_Cam DeepStack: Alert cancelled [DeepStack: 100] 8605ms
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,984
Reaction score
48,723
Location
USA
WOW - something is way out of whack. Those times are way too long.
 

sorka

Pulling my weight
Joined
Aug 9, 2015
Messages
366
Reaction score
198
I'm seeing similar results. Simply adding the dark.pt file to MyModels results in non dark processing jumping from about 200ms to 3000ms+ even when I don't add dark to the camera AI custom models section.
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,046
Reaction score
950
I'm seeing similar results. Simply adding the dark.pt file to MyModels results in non dark processing jumping from about 200ms to 3000ms+ even when I don't add dark to the camera AI custom models section.
Have you reported it? I haven't heard back from support yet.
 

sebastiantombs

Known around here
Joined
Dec 28, 2019
Messages
11,511
Reaction score
27,695
Location
New Jersey
It will use any model in the "models' directory. To prevent that put a semicolon, ; , in the models box of the AI setup on each camera.
 

sorka

Pulling my weight
Joined
Aug 9, 2015
Messages
366
Reaction score
198
It will use any model in the "models' directory. To prevent that put a semicolon, ; , in the models box of the AI setup on each camera.
So if I have a custom model in MyModels and don't list that model in the "Cutom models" box of a camera, the model is still used any ways? That doesn't make sense.
 

sebastiantombs

Known around here
Joined
Dec 28, 2019
Messages
11,511
Reaction score
27,695
Location
New Jersey
If you've mentioned models in the AI setup, which you sort of have to do when using models, it will always look there for a model when analyzing. Give the semicolon a try. In the AI setup, BI configuration, you check a box that says "use custom models" and supply the path. BI uses that to initialize DS, telling it to use custom models, when BI starts DS every time. No real surprise there.
 

sorka

Pulling my weight
Joined
Aug 9, 2015
Messages
366
Reaction score
198
If you've mentioned models in the AI setup, which you sort of have to do when using models, it will always look there for a model when analyzing. Give the semicolon a try.
That's the point. I haven't mentioned ANY models in the AI setup of any camera. Simply turning on the "Use custom model folder" in the global settings and adding dark.pt to that folder results in DS going from 200 ms to 5000 ms for image processing.
 
Top