Hello.
I had problem with using pyzed camera and pycuda. For inference model i used tenssort and cuda (upload engine). i did couple cpu threads and inside thread with inference i write from cuda import autoinit it create’s a new contest in thread. So in sum up program has 2 thread cpu and 2 contest gpu (pyzed and pycuda).
I solved this but maybe it will be usefull