CPAI Coral Detections not working

General discussion about Blue Iris
almcken
Posts: 1
Joined: Fri Nov 03, 2023 4:06 pm

CPAI Coral Detections not working

Post by almcken »

Hello, I have the coral TPU setup and running and working on a raspberry pi. I have tested it and am getting back good results, but the it seems like blue iris isn't taking the results correctly? I am not sure how to descuribe it but when I check the AI debugging I am not seeing the person icons, just circle crossed out logo. See attached image.

Any ideas on what I am doing wrong?
coral1.png
coral1.png (15.59 KiB) Viewed 464421 times
ai settings.png
ai settings.png (25.33 KiB) Viewed 464420 times
jensie
Posts: 15
Joined: Sat Nov 11, 2023 2:46 pm

Re: CPAI Coral Detections not working

Post by jensie »

I've not started yet with BI. Currently, running Frigate with TPU but thinking of moving. Just saw this post https://github.com/codeproject/CodeProj ... 1675977630
Based on this, it looks like W10 is supported, not sure about W11. On what do you run your environment ?
douga
Posts: 19
Joined: Tue Dec 12, 2023 5:28 pm

Re: CPAI Coral Detections not working

Post by douga »

I'm running BI with CodeProject AI on a Windows 11 PC using a Google Coral TPU via a PCIe interface (not USB). The AI is using my Coral TPU, and is frankly quite amazing. Generally analyzing in 13ms - 25ms and have processed over 43,000 requests without crashing or issues. Before the TPU was installed, I was running the AI on my Core i7-9700k CPU which was taking 125ms - 500ms. So the TPU appears to be 10 times faster and draws only a couple of watts doing it. Pretty impressive.
Attachments
BI - CPAI.JPG
BI - CPAI.JPG (216.21 KiB) Viewed 456450 times
cp_sean
Posts: 2
Joined: Wed Nov 01, 2023 8:48 pm

Re: CPAI Coral Detections not working

Post by cp_sean »

almcken wrote: Fri Nov 03, 2023 4:10 pm Hello, I have the coral TPU setup and running and working on a raspberry pi. I have tested it and am getting back good results, but the it seems like blue iris isn't taking the results correctly? I am not sure how to descuribe it but when I check the AI debugging I am not seeing the person icons, just circle crossed out logo. See attached image.
Could you please share your System Info tab from the CodeProject.AI Server dashboard, and any logs you get for these results as well?
douga
Posts: 19
Joined: Tue Dec 12, 2023 5:28 pm

Re: CPAI Coral Detections not working

Post by douga »

cp_sean wrote: Wed Dec 13, 2023 7:55 pm
almcken wrote: Fri Nov 03, 2023 4:10 pm Hello, I have the coral TPU setup and running and working on a raspberry pi. I have tested it and am getting back good results, but the it seems like blue iris isn't taking the results correctly? I am not sure how to descuribe it but when I check the AI debugging I am not seeing the person icons, just circle crossed out logo. See attached image.
Could you please share your System Info tab from the CodeProject.AI Server dashboard, and any logs you get for these results as well?
Sure, here you go...
CPAI System Info.JPG
CPAI System Info.JPG (96.8 KiB) Viewed 456415 times
CPAI Log.JPG
CPAI Log.JPG (222.28 KiB) Viewed 456415 times
MikeLud
Posts: 85
Joined: Sun Mar 21, 2021 3:29 am

Re: CPAI Coral Detections not working

Post by MikeLud »

The ObjectDetection (Coral) module does not support custom models only default object detection.
douga
Posts: 19
Joined: Tue Dec 12, 2023 5:28 pm

Re: CPAI Coral Detections not working

Post by douga »

MikeLud wrote: Wed Dec 13, 2023 10:48 pm The ObjectDetection (Coral) module does not support custom models only default object detection.
Can you clarify what this means? What is the difference between custom models and default object detection? I didn't notice any differences when switching from my CPU to the TPU in CodeProjectAI (CPAI). It still detects people and cars.
MikeLud
Posts: 85
Joined: Sun Mar 21, 2021 3:29 am

Re: CPAI Coral Detections not working

Post by MikeLud »

Custom models only detect the below compared to default object detection

CodeProject.AI-Custom-IPcam-Models
IPcam-combined Labels: - person, bicycle, car, motorcycle, bus, truck, bird, cat, dog, horse, sheep, cow, bear, deer, rabbit, raccoon, fox, skunk, squirrel, pig

IPcam-general Labels (includes dark models images): - person, vehicle

IPcam-animal Labels: - bird, cat, dog, horse, sheep, cow, bear, deer, rabbit, raccoon, fox, skunk, squirrel, pig

IPcam-dark Labels: - Bicycle, Bus, Car, Cat, Dog, Motorcycle, Person

license-plate Labels: - DayPlate, NightPlate

Plate Label: - Plate


Default Object Detection:
person
bicycle, car, motorbike, aeroplane, bus, train, truck, boat
traffic light, fire hydrant, stop sign, parking meter, bench
cat, dog, horse, sheep, cow, elephant, bear, zebra, giraffe
backpack, umbrella, handbag, tie, suitcase, frisbee, skis, snowboard, sports ball, kite, baseball bat, baseball glove, skateboard, surfboard, tennis racket
bottle, wine glass, cup, fork, knife, spoon, bowl
banana, apple, sandwich, orange, broccoli, carrot, hot dog, pizza, donut, cake
chair, sofa, pottedplant, bed, diningtable, toilet, tvmonitor, laptop, mouse, remote, keyboard, cell phone, microwave, oven, toaster, sink, refrigerator, book, clock, vase, scissors, teddy bear, hair drier, toothbrush
douga
Posts: 19
Joined: Tue Dec 12, 2023 5:28 pm

Re: CPAI Coral Detections not working

Post by douga »

MikeLud wrote: Thu Dec 14, 2023 2:36 pm Custom models only detect the below compared to default object detection

CodeProject.AI-Custom-IPcam-Models
IPcam-combined Labels: - person, bicycle, car, motorcycle, bus, truck, bird, cat, dog, horse, sheep, cow, bear, deer, rabbit, raccoon, fox, skunk, squirrel, pig

IPcam-general Labels (includes dark models images): - person, vehicle

IPcam-animal Labels: - bird, cat, dog, horse, sheep, cow, bear, deer, rabbit, raccoon, fox, skunk, squirrel, pig

IPcam-dark Labels: - Bicycle, Bus, Car, Cat, Dog, Motorcycle, Person

license-plate Labels: - DayPlate, NightPlate

Plate Label: - Plate


Default Object Detection:
person
bicycle, car, motorbike, aeroplane, bus, train, truck, boat
traffic light, fire hydrant, stop sign, parking meter, bench
cat, dog, horse, sheep, cow, elephant, bear, zebra, giraffe
backpack, umbrella, handbag, tie, suitcase, frisbee, skis, snowboard, sports ball, kite, baseball bat, baseball glove, skateboard, surfboard, tennis racket
bottle, wine glass, cup, fork, knife, spoon, bowl
banana, apple, sandwich, orange, broccoli, carrot, hot dog, pizza, donut, cake
chair, sofa, pottedplant, bed, diningtable, toilet, tvmonitor, laptop, mouse, remote, keyboard, cell phone, microwave, oven, toaster, sink, refrigerator, book, clock, vase, scissors, teddy bear, hair drier, toothbrush
Thanks Mike. Question for you, do people prefer to use the custom models for better performance? In other words, since the default object detection is looking for more/different objects, is it generally more taxing on the system? What is the benefit of using the custom models over the default?
MikeLud
Posts: 85
Joined: Sun Mar 21, 2021 3:29 am

Re: CPAI Coral Detections not working

Post by MikeLud »

The custom models are faster and have better accuracy. I use ipcam-general on all my cameras.
I am working on a Coral module that will work with custom models.
Post Reply