I just upgraded an added in a dual tpu chip into my server in addition to its original single tpu. I was occasionally getting timeouts when the single tpu was busy.
Multi-tpu is now working as far as I can tell. Both code project and
blue iris show multi-tpu in use.
I now have the original single tpu M2 M key and dual tpu e key via a cheap aliexpress pci-e wireless adaptor card (cant paste a link to this).
The dual tpu only shows as a single device in windows (confirmed this by having the dual tpu as the only tpu and checking available devices).
The only modification I had to do was edit the options.py file. There were a heap of red messages within the CPAI log window (No multi-TPU interpreters" error).
The work around was to edit C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\options.py) and changed the 60 seconds to 1 day.
Exact line
self.MAX_IDLE_SECS_BEFORE_RECYCLE = 86400.0 # To be added to non-multi code
source :
Anyone know of any logging option to be able to tell which tpu is being sent the detection job?