code: def requiredGPU_MB(self, n):
          
          from darknet.core import darknet_with_cuda
          if (darknet_with_cuda()): # its using cuda
              free = getFreeGPU_MB()
              print("Yolo: requiredGPU_MB: required, free", n, free)
              if (free == -1): # could not detect ..
                  return True
              return (free>=n)
          else:
              return True
docs: Required GPU memory in MBytes