Search results

  1. M

    CodeProject.AI Version 2.5

    I don't have the time to explore it myself, but I'd be very curious if this is a size issue. For example, the cat picture you posted a while ago had the cat being very small relative to the entire frame. Same with the car picture looking down on the road. The AI models only work at 300x300 to...
  2. M

    CodeProject.AI Version 2.5

    Sounds like there’s probably a bug in there. I’d wait for another release and see if it gets fixed. Or if you’re feeling energetic you could work on debugging it yourself. To do that you’d probably start with uploading some known-good images directly to the CPAI interface and see if that returns...
  3. M

    What motivated you to get started

    Yeah. There's something oddly addictive about building a camera system. I first had the doorbell camera, but then we had a string of thefts on the street where I couldn't see them. So I put two more cameras up on the street. But they were shitty Google cameras and the resolution wasn't nearly...
  4. M

    CodeProject.AI Version 2.5

    The best setup for a model will really depend on your hardware setup. As in how many cameras you have, how often they trigger, their resolution, what accuracy you want, what you’re trying to identify, what CPU you have, and how hard you want to push it. I would set up everything else first, and...
  5. M

    CodeProject.AI Version 2.5

    I’d look into tiling the image also, by chopping it up into smaller pieces and running inference on those. It’s something I’ve been working on for the Coral implementation, I don’t know if it’s enable anywhere else tho. Things run slower, however, because you’re doing 2x or 4x the analysis.
  6. M

    CodeProject.AI Version 2.5

    Yeah. There's something oddly addictive about building a camera system. I first had the doorbell camera, but then we had a string of thefts on the street where I couldn't see them. So I put two more cameras up on the street. But they were shitty Google cameras and the resolution wasn't nearly...
  7. M

    Working combo, Asrock Deskmini A300 (AMD) and m.2 Coral TPU

    Are you running the new multi-TPU code in the latest release?
  8. M

    CodeProject.AI Version 2.5

    Alright. I've been worried about a particular memory leak in the multi-TPU code, but no one has mentioned it, so maybe it's not a problem in practice. It's still worth watching for, however. I'm afraid I probably can't help you with the 500 error.
  9. M

    CodeProject.AI Version 2.5

    Do you have multi-TPU enabled? You may also want to watch the memory usage of CPAI, it's possible that there's a memory leak.
  10. M

    CodeProject.AI Version 2.0

    Choosing what’s optimal for your computer is really a function of three things: inference frame rate desired complexity of model selected acceptable cpu usage Simple models that fit entirely on the TPU will be limited by CPU used to resize images or the frame rate across all cameras. Time per...
  11. M

    CodeProject.AI Version 2.0

    I wouldn't worry about image sizing. Each model (and model size) will have different input tensor dimensions. In terms of the TPUs' ability, it's internal RAM can't handle tensors larger than around 500 px and things seem to start falling apart in the compiler. But otherwise input tensors tend...
  12. M

    CodeProject.AI Version 2.0

    One other thing to note is that the original code scales the camera image to fit on the 300x300px input tensor. This results in letterboxing of the image and just under half of the input pixels are unused. Instead of that, the multi-TPU code does tiling of the input image. By default it will...
  13. M

    CodeProject.AI Version 2.0

    One thing to note is that multi-TPU isn’t going to make your individual processing time faster, but it should improve your throughput. When before you could only push 5 FPS through Coral, now you can do 10 FPS through two. Also, in general Coral works better if you’re only running one model on...
  14. M

    CodeProject.AI Version 2.0

    Yeah, I hear that. For me, rewriting it to be multithreaded is easy compared to getting it running reliably and connected to the rest of the CPAI system. That there is the hard part…
  15. M

    CodeProject.AI Version 2.0

    Fun fact: with half of my cores disabled (3/6) on my i5-8500 system and five TPUs, I run YOLOv5l (45.5 M Params) inferences at the rate of one every 35.9 ms with the new multi-TPU code. However, each of the 16 threads spends on average ~455 ms waiting for inferences to happen. With YOLOv5n (1.9...
  16. M

    CodeProject.AI Version 2.0

    FWIW, the Dual TPU shouldn't use 5w unless its going all out. Do you have a heatsink on it? I ended up going through a number of different iterations before finding something that would keep it under 85C when under load. Above that temperature, it throttles itself...
  17. M

    CodeProject.AI Version 2.0

    Are you submitting images from BI or the CPAI interface?
  18. M

    CodeProject.AI Version 2.0

    When multiTPU is set to false is should follow the previous Coral TPU code path and touch very little changed code. Is that working at all for you? I see nothing in your logs showing that it's actually attempting to make an inference.
  19. M

    CodeProject.AI Version 2.0

    Looks like no work is reaching the module, so there is some connection upstream of that that’s missing. I’d be curious if you can turn on debug level logging, but I don’t know if there’s an option for it
  20. M

    CodeProject.AI Version 2.0

    For what it’s worth, I recently rewrote the CPAI Coral implementation and it was accepted into the mainline branch a few days ago. Now it handles multithreaded code, multi TPUs, and segmented inference pipelines. There are a few things left to do, but hopefully this next version is more effective.
  21. M

    Blue Iris and CodeProject.AI ALPR

    This guy was trying to find stolen cars/plates with that method. https://www.reddit.com/r/sanfrancisco/s/18LkECY4Hk
  22. M

    Recommend an Economical GPU for CPAI

    Thats why you convert to 0.5kW, which is almost $2k per year. Which sounds about right for a continuous 500 w load around these parts.
  23. M

    Recommend an Economical GPU for CPAI

    I’m not sure how the math works for percentage or why you’d want use it. I’m converting half of 75 watts of TDP to kW because the utility charges in kWh. Even my low-power card wasn’t running at 3.7 watts. It was running 10-30 w.
  24. M

    Recommend an Economical GPU for CPAI

    Type “ .0037 kw in w” into google and it will do the math for you.
  25. M

    Recommend an Economical GPU for CPAI

    I don’t think I agree. 0.0037 kW is 3.7 watts, but I had intended 37 watts, so I did it correctly. It’s not too far off from your 26 watts.
  26. M

    Recommend an Economical GPU for CPAI

    My actual bill is even less interpretable because I have solar on the roof. PG&E has been raising rates lately to pay for the wildfire habit they have developed in the past few years. I have a kill-a-watt already plugged into my machine and a Quadro P400 card in it. The listed P400 TDP is 30 w...
  27. M

    Recommend an Economical GPU for CPAI

    The lowest rate I see here is $.39 for off-peak winter usage. Highest is $.62 for on-peak summer usage. PG&E intentionally makes this hard to find and decipher. https://www.pge.com/tariffs/Res_Inclu_TOU_Current.xlsx Edit: on the far right column they say the average rate is $.447
  28. M

    Recommend an Economical GPU for CPAI

    You’re not wrong that it’s more complicated than that, but also I low-balled the kWh rate. According to this site it averages $.45, and ranges from $.34-$.72 per kWh for PG&E...
  29. M

    Recommend an Economical GPU for CPAI

    I recently realized that if I'm running a GPU continuously like a low-power NVIDIA 1650 (~$150), that has a TDP of 75 watts, it costs me ~$200 per per year in electricity (at $0.30 per kWh in California). Several Coral TPUs reduce that to be closer to $10-$20 per year. (Not saying you should do...
  30. M

    How to train a custom YOLOv5 model using CodeProject.AI Training for YoloV5 6.2 module

    If we are running two models on my video feeds, does that mean that each model has half of the resources to run? Does it makes more sense to train a single model with all of the classes than several custom models? If I want to add a fire class to one of your custom ipcam models does that mean it...