Cuda Oom When Inference Using Python Script But Works Fine When Using

Cuda Oom When Inference Using Python Script But Works Fine When Using