Accelerating a Python code

Hi! I am a rookie developer learning to code python with Cuda. I want to GPUize the following scanning window code:

def sliding_window(image, stepSize, windowSize):
	# slide a window across the image
	for y in range(0, image.shape[0], stepSize):
		for x in range(0, image.shape[1], stepSize):
			# yield the current window
			yield (x, y, image[y:y + windowSize[1], x:x + windowSize[0]])

Please show me a way forward.


Hello, I have no experience with CUDA python (only native C/C++), but this seems like what you need:

Course which You are recommending is down.

Sorry, the small tutorial video looked fine and I disn’t re-check the course.