Some success with a coral tpu (m.2) with CPAI and BI

Yeah it's improved a lot since it first came out. It was the main reason I bought a TPU.... and then a few more. :p

When I found the bug on the models not being used I did look at the downloaded files to compare the sizes hoping it was something simple like that but whey seemed legit (same file sizes from version to version). It also always downloaded them for me at the install.

If I had more time I would like to actually get in the code and learn it and maybe even help with debugging. But I've been wanting to do that for a year now and still haven't soo... :idk: I still have a few cameras I bough from the summer sale that I still haven't put up. :banghead:

What is AITool? I've seen that in these threads before (maybe from you LOL) but when Googling it I just a list of AI Tools that are available. I thought I found something once but it was a service and I don't want to use any services and rely on the internet. Prefer everything local.

I've only been using BI a little over a year and still learning new things every day. Same thing with CPAI and even the cameras themselves. This has become addiction :eek:

The AItool (when it works) is a great bit if kit

Releases · VorlonCD/bi-aidetection (github.com)

You can add more control and more servers to send analysis to.
 
I've been trying to get CPAI working in a proxmox lxc container (debain). CPAI runs but just can't get the coral usb mapped. conf file has it mapped but the coral module is just not picking it up..
The cpai container on unraid works fine.

The CPAI on the proxmox windows VM works ok and picks up the coral usb but just struggling with using cpai in a lxc container. Had it working about a year ago but just stopped working now.

Added these lines to the lxc container which I'm sure worked last time but not anymore.

usb0: host=1a6e:089a,usb4=1 # coral ID pre-load / replace USB4 with selection
usb1: host=18d1:9302,usb4=1 # coral ID post-load / replace USB4 with selection
lxc.mount.entry: /dev/bus/usb/004 dev/bus/usb/004 none bind,optional,create=dir # Replace USB4 with selection
 
I've been trying to get CPAI working in a proxmox lxc container (debain). CPAI runs but just can't get the coral usb mapped. conf file has it mapped but the coral module is just not picking it up..
The cpai container on unraid works fine.

The CPAI on the proxmox windows VM works ok and picks up the coral usb but just struggling with using cpai in a lxc container. Had it working about a year ago but just stopped working now.

Added these lines to the lxc container which I'm sure worked last time but not anymore.

usb0: host=1a6e:089a,usb4=1 # coral ID pre-load / replace USB4 with selection
usb1: host=18d1:9302,usb4=1 # coral ID post-load / replace USB4 with selection
lxc.mount.entry: /dev/bus/usb/004 dev/bus/usb/004 none bind,optional,create=dir # Replace USB4 with selection

I'm a Linux Newb so can't offer much help. I do know the USB version of the TPU is problematic.

I've been trying to learn Linux to move away from Windows but being a Windows user since 3.1 makes it hard. LOL I moved to Mac in 2015 but that's not saying much since I'm really just using the GUI and not learning the Terminal. Sadly I was a DOS user back in the day and regret not keeping that skillset.

For example, I followed the instructions for CPAI for Linux to a T (multiple times) and I can NEVER get CPAI to auto start with Linux if I reboot the machine. :banghead: I'm trying to move CPAI away from Windows because it keeps freezing up on me (2 separate instances, one bare metal windows install and one in a VM on proxmox). I used Ubuntu since that seems the most popular and I think the instructions were for it.

I know Docker is huge and I like the concept but I hate relying on a 3rd party which if you really think about it, that's what they are. Although I may bite the bullet one day since most people say CPAI works the best in a Docker Container.
 
I'm a Linux Newb so can't offer much help. I do know the USB version of the TPU is problematic.

I've been trying to learn Linux to move away from Windows but being a Windows user since 3.1 makes it hard. LOL I moved to Mac in 2015 but that's not saying much since I'm really just using the GUI and not learning the Terminal. Sadly I was a DOS user back in the day and regret not keeping that skillset.

For example, I followed the instructions for CPAI for Linux to a T (multiple times) and I can NEVER get CPAI to auto start with Linux if I reboot the machine. :banghead: I'm trying to move CPAI away from Windows because it keeps freezing up on me (2 separate instances, one bare metal windows install and one in a VM on proxmox). I used Ubuntu since that seems the most popular and I think the instructions were for it.

I know Docker is huge and I like the concept but I hate relying on a 3rd party which if you really think about it, that's what they are. Although I may bite the bullet one day since most people say CPAI works the best in a Docker Container.

Docker's open source for everything you'd use it for, and you don't have to use their hub for downloading images either, so it's a much cleaner version than anything running on Windows :puke:
 
I don't want to hijack this thread but how come every time I want to download an image I get prompted to register? Also, don't I need to register to get the Docker Engine? I stopped looking into after seeing all that. I didn't know it was Open Source either. I thought it was a private company.
 
I did some Google searching last night and saw some threads on how to use Docker without their hub but most seemed like they were for private company use (e.g.: a company creating internal applications that they would move from a DEV to PROD environment). If there is a link you can provide on how to setup a Docker Engine and get the CPAI image without registering I wouldn't mind giving it a shot.
 
After some weeks of using BI with a coral tpu/CPAI I've come to the conclusion that it's not worth the extra saving of running a gpu. Too much trouble and not very good accuracy.
GPU had far superior accuracy as it can utilize larger models at fast speeds.
TPU still only works well with frigate.

Think I may be reinstalling my gpu this weekend;)
 
After some weeks of using BI with a coral tpu/CPAI I've come to the conclusion that it's not worth the extra saving of running a gpu. Too much trouble and not very good accuracy.
GPU had far superior accuracy as it can utilize larger models at fast speeds.
TPU still only works well with frigate.

Think I may be reinstalling my gpu this weekend;)
Agreed. I've given up. I am ready to pull the M.2 out of the computer to make way for an SSD. The "blazing" speeds are not worth the lack of accuracy. YOLO v5 .NET with the Intel GPU works well. Coral USB working well in Frigate / Ubuntu for me almost a year also. Probably a software/driver issue I would think.

Sent from my iPlay_50 using Tapatalk
 
  • Like
Reactions: CanCuba