IP Cam Talk Custom Community DeepStack Model

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
26,035
Reaction score
50,901
Location
USA
It saves in the Alerts folder.
 

Jason R

Young grasshopper
Joined
Oct 5, 2017
Messages
31
Reaction score
1
Should I run DS in medium or high mode? I assume the accuracy is better in high mode? The time listed on DS goes from 500ms to 1000ms, but I'm not sure that matters functionally?
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
26,035
Reaction score
50,901
Location
USA
I have found mine is just as accurate in low mode and is faster. YMMV
 

Jason R

Young grasshopper
Joined
Oct 5, 2017
Messages
31
Reaction score
1
I have found mine is just as accurate in low mode and is faster. YMMV
Ok, I added the objects:0 etc - still it's not detecting anything but people.
The blue iris log shows that Deepstack cancelled the alert in like 17ms (even though the DS log shows it takes 500ms)
Here is a sample .DAT file
 

Attachments

Chris Dodge

Pulling my weight
Joined
Aug 9, 2019
Messages
99
Reaction score
125
Location
massachusetts
@MikeLud1 - Great work on this! However, the latest "combined" doesnt seem to get birds or cats. In the attached images, deepstack got a Bird at 63% and a Cat at 58%, but "combined" doesnt see anything.
I confirmed it does get cars and people near the same detection percent as deepstack, but maybe a little lower.
I tested on medium and high, same result.
I'm using the latest Deepstack Windows GPU version.
 

Attachments

Last edited:

TBurt

Getting the hang of it
Joined
Aug 14, 2021
Messages
68
Reaction score
98
Location
Houston
@MikeLud1 - Great work on this! However, the latest "combined" doesnt seem to get birds or cats. In the attached images, deepstack got a Bird at 63% and a Cat at 58%, but "combined" doesnt see anything.
I confirmed it does get cars and people near the same detection percent as deepstack, but maybe a little lower.
I tested on medium and high, same result.
Strang, it thinks my dog is usually a bird, and on occasions a cat. Then a dog is in third place. To be fair she does kind of look like a bird / cat in the burned screen shots. LOL I am pretty sure I am running the latest combined model, but I will go back and make sure. I've been meaning to send in a few pics of her to bed added to the next version of animal/combined.

Backyard_1.20211226_120000.239115.4099-65.16564.18696.jpgBackyard_1.20211226_120000.1331260.4099-65.10642.12692.jpg
 
Last edited:

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,238
Reaction score
4,299
Location
Brooklyn, NY
@MikeLud1 - Great work on this! However, the latest "combined" doesnt seem to get birds or cats. In the attached images, deepstack got a Bird at 63% and a Cat at 58%, but "combined" doesnt see anything.
I confirmed it does get cars and people near the same detection percent as deepstack, but maybe a little lower.
I tested on medium and high, same result.
I'm using the latest Deepstack Windows GPU version.
I am hoping to issue a new combined, general, and animal by Friday. Hopefully the next version will have better results.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,238
Reaction score
4,299
Location
Brooklyn, NY
Strang, it thinks my dog is usually a bird, and on occasions a cat. Then a dog is in third place. To be fair she does kind of look like a bird / cat in the burned screen shots. LOL I am pretty sure I am running the latest combined model, but I will go back and make sure. I've been meaning to send in a few pics of her to bed added to the next version of animal/combined.

View attachment 113491View attachment 113492
Send me some images and I will add them to the next version.
 

TBurt

Getting the hang of it
Joined
Aug 14, 2021
Messages
68
Reaction score
98
Location
Houston
Send me some images and I will add them to the next version.
Will do. I will have to go back and reread the label creation part of this thread. I think my ADHD was really bad that day when I originally read your instructions. I will try to get them labeled and ready to send to you by Monday or Tuesday. How many images should I shoot for? How many would you need to make a difference in training the models?
 

hb020

n3wb
Joined
Jul 27, 2019
Messages
5
Reaction score
3
Location
France
How should one configure BlueIris to call the "general" custom model when deepstack is run from Docker/Jetson Nano?

I tried (in the camera's "Trigger/Artificial Intelligence" form):
  • "objects:0,general" or "objects:0,custom/general": deepstack does not get called (confirmed with wireshark)
  • "general" : default detection gets called (/v1/vision/detection)
The general model runs fine when I call it directly (using /v1/vision/custom/general instead of /v1/vision/detection), so there is no problem on the deepstack side.

This how I load deepstack:
I put general.pt in ~/aimodels/
and started deepstack with:
sudo docker run -d --log-driver syslog --runtime nvidia --name deepstack --restart unless-stopped -e VISION-DETECTION=True -e MODE=High -v /home/myuser/aimodels:/modelstore/detection -p 80:5000 deepquestai/deepstack:jetpack-2021.09.1

I cannot run the combined model, as I found that loading that model provokes an out of memory on my 4GB Jetson Nano.

BI: 5.5.3.7 on Win10
 

Lucas Tam

n3wb
Joined
Apr 12, 2017
Messages
28
Reaction score
5
I noticed this training set is built on the Coco image files? I wonder if it will be more accurate if people contributed CCTV images instead since CCTV cameras often have odd angles, focal lengths, and color (i.e. night vision)?

Response times are good - 120ms or so with a Nvidia T400, however times sometimes spike.
 
Last edited:

Cam_curious

Young grasshopper
Joined
Jan 3, 2018
Messages
83
Reaction score
19
Location
New Hampshire
I would ask that you keep "mouse". One of the things that I use BI for is to try to find
out how mice are getting in my motorhome. I can imagine that a lot of people would
use BI for these types of things.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,238
Reaction score
4,299
Location
Brooklyn, NY
I would ask that you keep "mouse". One of the things that I use BI for is to try to find
out how mice are getting in my motorhome. I can imagine that a lot of people would
use BI for these types of things.
The mouse is not the the type of mouse, it is the computer mouse.
 

allgrind

n3wb
Joined
Dec 19, 2020
Messages
15
Reaction score
11
Location
Germany
Hey

are you otherwise satisfied with the Jetson nano in conjunction with Deepstack? What are your response times

Thanks and best regards
Jan
How should one configure BlueIris to call the "general" custom model when deepstack is run from Docker/Jetson Nano?

I tried (in the camera's "Trigger/Artificial Intelligence" form):
  • "objects:0,general" or "objects:0,custom/general": deepstack does not get called (confirmed with wireshark)
  • "general" : default detection gets called (/v1/vision/detection)
The general model runs fine when I call it directly (using /v1/vision/custom/general instead of /v1/vision/detection), so there is no problem on the deepstack side.

This how I load deepstack:
I put general.pt in ~/aimodels/
and started deepstack with:
sudo docker run -d --log-driver syslog --runtime nvidia --name deepstack --restart unless-stopped -e VISION-DETECTION=True -e MODE=High -v /home/myuser/aimodels:/modelstore/detection -p 80:5000 deepquestai/deepstack:jetpack-2021.09.1

I cannot run the combined model, as I found that loading that model provokes an out of memory on my 4GB Jetson Nano.

BI: 5.5.3.7 on Win10
 

hb020

n3wb
Joined
Jul 27, 2019
Messages
5
Reaction score
3
Location
France
Response times are between 150 and 300msec on 2Mpixel images, it is silent, low power, and recognition quality (false positives/negatives) is not great but just acceptable for my basic case: people detection.
My driver for using it: I wanted to free up CPU for other work, and that it did.
So: it does the job, but would like to see something better if possible. I'd like to put my Coral TPUs to work on this. Deepstack + Jetson was just easier to set up.
 

yghujnkl

n3wb
Joined
Jan 25, 2021
Messages
12
Reaction score
2
Location
Antartica
Awesome work!
I did a bit of research and couldn't find much on this, so if one were running DeepStack in Docker, how would you point DS to this community model?
I'm assuming I'd have to copy the .pt to the Docker host, then add an env variable for it?
 

Lucas Tam

n3wb
Joined
Apr 12, 2017
Messages
28
Reaction score
5
For exDark, will BlueIris support time based models - i.e. if after dark, use exDark, if daytime, use regular models?
 
Top