Added Dark Model... process times slower?

105437

BIT Beta Team
Jun 8, 2015
2,134
1,030
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
 
  • Like
Reactions: user8963
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.
 
  • Like
Reactions: 105437 and kklee
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.
 
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
 
  • Like
Reactions: TBurt
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.
 
  • Like
Reactions: 105437
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:
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:
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.
 
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
 
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.
 
  • Like
Reactions: 105437
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.
 
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.
 
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.
 
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.
 
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.