I'm working with images that have periodic boundary conditions, meaning that objects wrap around from the right boundary of the image to the left. It would be really great if there were an nn.SpatialPeriodicPadding module so that I could insert periodic convolutions directly into a neural network. If anyone has already created such a module or is willing to create one, that would be extremely useful.On the other hand, I would be happy to create such a module myself if anyone can provide me with some guidelines for inserting the new module into torch. It looks like it would be pretty easy to just modify the existing code for nn.SpatialReflectionPadding or nn.SpatialReplicationPadding, but I really don't understand the inner workings of the torch code well enough to then incorporate that code into the torch library.
--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+unsubscribe@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at https://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.
My suggestion is that you take a look at some torch modules that are distributed out of tree. One I used recently as a template for work I was doing was the spatial transformers module. It is a good example of a standalone loadable neural network module with both CUDA and CPU implementations: https://github.com/qassemoquab/stnbhwdMaking a loadable library independent of torch will help get you more familiar with the inner workings of torch. After you have built a standalone library, it should be much easier for you to convert that to a pull request against the main torch project.Best,-Jeff
On Mon, Dec 12, 2016 at 8:48 PM, Alexander Weiss via torch7 <torch7+APn2wQcsaR8bcOeppHpjYu30PfpJTwn3luLMBUUyH0EVaRyRp1q7UJHGY@googlegroups.com> wrote:
I'm working with images that have periodic boundary conditions, meaning that objects wrap around from the right boundary of the image to the left. It would be really great if there were an nn.SpatialPeriodicPadding module so that I could insert periodic convolutions directly into a neural network. If anyone has already created such a module or is willing to create one, that would be extremely useful.On the other hand, I would be happy to create such a module myself if anyone can provide me with some guidelines for inserting the new module into torch. It looks like it would be pretty easy to just modify the existing code for nn.SpatialReflectionPadding or nn.SpatialReplicationPadding, but I really don't understand the inner workings of the torch code well enough to then incorporate that code into the torch library.
--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.
On Mon, Dec 12, 2016 at 8:48 PM, Alexander Weiss via torch7 <torch7+APn2wQcsaR8bcOeppHpjYu30PfpJTwn3luLMBUUyH0EVaRyRp1q7UJ...@googlegroups.com> wrote:I'm working with images that have periodic boundary conditions, meaning that objects wrap around from the right boundary of the image to the left. It would be really great if there were an nn.SpatialPeriodicPadding module so that I could insert periodic convolutions directly into a neural network. If anyone has already created such a module or is willing to create one, that would be extremely useful.--On the other hand, I would be happy to create such a module myself if anyone can provide me with some guidelines for inserting the new module into torch. It looks like it would be pretty easy to just modify the existing code for nn.SpatialReflectionPadding or nn.SpatialReplicationPadding, but I really don't understand the inner workings of the torch code well enough to then incorporate that code into the torch library.
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at https://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+unsubscribe@googlegroups.com.
luarocks install cunn will not use the exact same version as you have on disk, it fetches from what is published on the rocks server. You might do a git pull to make sure you are using the latest and greatest, perhaps this is an already resolved issue.If not you will have to figure out why cmake is not finding things properly. You can pass some arguments to have it print debug information to the console (I always google for the arguments don't remember them off hand), that would be the first step of what you would have to do to figure it out if just updating the code doesn't fix things.I still believe that building an out of tree module is an easier path as a first step for a new developer to torch. There should be minimal cmake changes required (I just pulled in the cmake code from cunn to find the local device into my module). The stn package I mentioned just compiles init.c and init.cu and you #include the code you need from there. You really shouldn't have to do much at all.If you think it would be helpful I can maybe look at building a template for an out of tree module and putting it on github this weekend.Best,-Jeff