Hi, sorry to disturb you.
Overview: I want to apply convolution operation only on a specific portion of the image ( some ROI)
Summary: let’s say the original image is:

and the image removing unwanted area is

I want to run the detection network on the modified image with convolution operation applied on only a specific part to actually speed up the network. Can you help me with this?
Or source code of how pytorch implemented convolutions so that I can write my own convolution operation.
Thank you