Circular convolution in torch

53 views
Skip to first unread message

Pierre Wilmot

unread,
Oct 20, 2016, 11:18:17 AM10/20/16
to torch7
Hi,

Is there any circular convolution module available in torch ?
I mean a convolution that instead of padding the image with 0 would just wrap around the image.

So far all I've found is this piece of code that create circular padding : https://github.com/DmitryUlyanov/texture_nets/blob/master/src/SpatialCircularPadding.lua
I've been thinking about applying it before a convolution operation, but after testing, it seems that it doesn't work (because of the
updateGradInput I think).

Is there any module doing that out of the box ?

Best regards,
Pierre

Kiran Vaidhya

unread,
Oct 22, 2016, 9:56:50 AM10/22/16
to torch7
Search for SpatialReflectionPadding in Torch
Reply all
Reply to author
Forward
0 new messages