IP Cam Talk Custom Community DeepStack Model

Sybertiger

Known around here
Joined
Jun 30, 2018
Messages
4,737
Reaction score
13,691
Location
Orlando
General V2.0 is about halfway done, about 16 hours left.
What's the story with the default 300 Epoch runs? I'm sure you are running it all the way through for completeness and accuracy but I was looking at the DS custom models video, which doesn't have narration, and it looks like the author was pointing his mouse at one of the stats of the Epoch runs to indicate that enough accuracy was achieved. He didn't allow it to run all 300 and simply grabbed the best.pt file fairly quickly as in "it's good enough" for gubermint work. Just asking because I was creating a model for for chits and giggles and let it run all 300 Epochs....was thinking I may could have grabbed the best.pt file after 50 runs.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,224
Reaction score
4,278
Location
Brooklyn, NY
What's the story with the default 300 Epoch runs? I'm sure you are running it all the way through for completeness and accuracy but I was looking at the DS custom models video, which doesn't have narration, and it looks like the author was pointing his mouse at one of the stats of the Epoch runs to indicate that enough accuracy was achieved. He didn't allow it to run all 300 and simply grabbed the best.pt file fairly quickly as in "it's good enough" for gubermint work. Just asking because I was creating a model for for chits and giggles and let it run all ....was thinking I may could have grabbed the best.pt file after 50 runs.
You can try the best.pt after 50 runs, I did notice that the best.pt file is larger then the final best file. My original models I ran 60 Epochs. I am not sure if that effects the model. What yolov5 model are you using to train yolov5s, yolov5m, yolov5l, or yolov5x. All of my models I am using yolov5s this will have the fastest detection times.
 

Sybertiger

Known around here
Joined
Jun 30, 2018
Messages
4,737
Reaction score
13,691
Location
Orlando
You can try the best.pt after 50 runs, I did notice that the best.pt file is larger then the final best file. I am not sure if that effects the model. What yolov5 model are you using to train yolov5s, yolov5m, yolov5l, or yolov5x. All of my models I am using yolov5s this will have the fastest detection times.
I was using the default yolo5m on the Google Colaboratory website since I don't have a GPU card in my box. I was just fooling around with creating a USPS model specifically for my cam's field of view. The USPS logo model (created by some other fellow) works pretty good but I was trying to create a "uni-directional" model to capture only incoming not outgoing mailman (dead-end neighborhood). I was seeing if I could use my existing IVS triggers that are bi-directional. I just might create a clone cam then use zones to create a uni-directional trigger then use the USPS logo model.....don't know, just fooling around.
 
Last edited:

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,224
Reaction score
4,278
Location
Brooklyn, NY
I was using the default yolo5m on the Google Co-laboratory website since I don't have a GPU card in my box. I was just fooling around with creating a USPS model specifically for my cam's field of view. The USPS logo model (created by some other fellow) works pretty good but I was trying to create a "uni-directional" model to capture only incoming not outgoing mailman (dead-end neighborhood). I was seeing if I could use my existing IVS triggers that are bi-directional. I just might create a clone cam then use zones to create a uni-directional trigger then use the USPS logo model.....don't know, just fooling around.
I just watched the video and the training in the video was done with with yolov5m which should have 42Mb file, but when he show how the model works the file size was 14Mb so this model was trained with yolov5s.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,224
Reaction score
4,278
Location
Brooklyn, NY
Update: General V2.1 is in first post

General V2.0 is finished. I am not happy with the results (I started training V2.1 hopefully it will turnout better). I tried something different with V2.0 , tried to balance the number of image from the original general model and the dark model because the dark images have less images then the original general model.

The model does work, I am using it right now for all my cameras. So I attached the model if anyone wants to try it, there is a pdf in the zip file with details of the model.

General V2.0 Results:
1653875193067.png1653875211395.png
 
Last edited:

sebastiantombs

Known around here
Joined
Dec 28, 2019
Messages
11,511
Reaction score
27,699
Location
New Jersey
@MikeLud1 I ran the general, V2.0, model overnight on my two problem child cameras. It actually performed quite well. The west camera detected about five more times versus the dark model and the east camera got them all. So far daytime is working at 100%. I've enabled it on another, indoor, camera to see how it does with people. Detection times are very consistent between day and night which is a nice thing.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,224
Reaction score
4,278
Location
Brooklyn, NY
@MikeLud1 I ran the general, V2.0, model overnight on my two problem child cameras. It actually performed quite well. The west camera detected about five more times versus the dark model and the east camera got them all. So far daytime is working at 100%. I've enabled it on another, indoor, camera to see how it does with people. Detection times are very consistent between day and night which is a nice thing.
Which dark model were you comparing to, mine or original?
 

sebastiantombs

Known around here
Joined
Dec 28, 2019
Messages
11,511
Reaction score
27,699
Location
New Jersey
I was running both your and the original simultaneously. Yours was labeled "dark" and the original was "dark1". I know the original is substantially larger and to throw in another variable I raised the detection from medium to high, but the overall performance has been quite good. Detection times are under 200ms in all cases.
 

Charles_CO

Young grasshopper
Joined
May 4, 2022
Messages
35
Reaction score
14
Location
Denver
Does it make sense to run both combined and dark models if I have lights turn ON with motion at night?
Just curious how will dark model work when lights will turn on and camera will switch from IR mode to regular mode with enough ambient light from the lights.
 

sebastiantombs

Known around here
Joined
Dec 28, 2019
Messages
11,511
Reaction score
27,699
Location
New Jersey
I'm not a fan of motion lights. Most miscreants don't even pay attention to them. That said, running dark and combined gives you the best of both worlds. Dark for before the lights come on and combined once they're on.

Is anyone else using the new "general" model? If so how's it working for you?
 

Charles_CO

Young grasshopper
Joined
May 4, 2022
Messages
35
Reaction score
14
Location
Denver
@sebastiantombs
I use dumb lights with smart switches and turn on lights around the house when we get home after sunset or when we hang out on the deck when it's dark. I use cameras as a trigger to tell home automation to get the lights going. Using deepstack help with false triggers but it take a little bit more time to trigger the lights. I am just playing with it to see what works, what is practical etc. With enough light at night I would think we could get better camera footage as well.

Is general model good for both day and night?
 

jrbeddow

Getting comfortable
Joined
Oct 26, 2021
Messages
374
Reaction score
489
Location
USA
Is anyone else using the new "general" model? If so how's it working for you?
Given that even the creator of this new model (@MikeLud1 ) wasnt very happy with it, I wanted to wait it out a few more days until he has the next version available (this coming weekend perhaps?).

Your experience has been helpful to read though, and I am somewhat tempted to try this version based on your satisfaction with it.
 

sebastiantombs

Known around here
Joined
Dec 28, 2019
Messages
11,511
Reaction score
27,699
Location
New Jersey
I am getting some new falses with the general model, but not enough to be concerning. Otherwise it has been doing a nice job and I'll be switching all cameras over to it later this evening.

I'm usually not one that rushes to the latest beta version or even the latest release. In this case I figured that Mike went through a lot of trouble and work to put this together so the least I can do is give it a shot to see if it works and, hopefully, my observations help with the next iteration.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,224
Reaction score
4,278
Location
Brooklyn, NY
I am getting some new falses with the general model, but not enough to be concerning. Otherwise it has been doing a nice job and I'll be switching all cameras over to it later this evening.

I'm usually not one that rushes to the latest beta version or even the latest release. In this case I figured that Mike went through a lot of trouble and work to put this together so the least I can do is give it a shot to see if it works and, hopefully, my observations help with the next iteration.
I am using general 2.0 on all my cameras and it is works, but I think I can do better. See the stats below, higher is better

General V1.2
1654035652832.png
General V2.0
1654035735847.png
 

Charles_CO

Young grasshopper
Joined
May 4, 2022
Messages
35
Reaction score
14
Location
Denver
I will do some testing for general 2.0 as well! I will still have to use animal model too as I really need to "keep an eye" on deer! That said so far I did not have much luck with deer. Most of them were recognized as sheep, dog or cow.. LOL But I am sure it's part of my learning journey.
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,062
Reaction score
958
@MikeLud1 Do you plan on updating the Combined model? Since I live in a rural location, it's very helpful to alert for animals. I currently run Combined during the day and Combined + Dark (new) after sunset. Thanks
 
Top