It looks like your script is not using the GPU properly and may be running on the CPU instead, which is why it's extremely slow. Also, your Quadro P1000 only has 4GB VRAM, which is likely causing out-of-memory issues.