Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flip the filter for finding matched patch #36

Open
Huihui94 opened this issue Feb 14, 2017 · 1 comment
Open

Flip the filter for finding matched patch #36

Huihui94 opened this issue Feb 14, 2017 · 1 comment

Comments

@Huihui94
Copy link

In the patches.py file, there is a method called find_patch_matches. I wonder to know why the third and forth dimension of b should be changed to b[:, :, ::-1, ::-1]
if convs is None:
convs = K.conv2d(a, b[:, :, ::-1, ::-1], border_mode='valid')
Thank you so much!

@gjpicker
Copy link

the filter_flip=True is the default param of conv2d ,which belong to theano.sandbox.cuda.dnn.dnn_conv or theano.tensor.nnet that is latest update to replace dnn

so , conv2d(input,b[:, :, ::-1, ::-1]) is equal to conv2d(input,b,filter_flip=False) where filter_flip is explictly defined to False in func's param .

otherwise ,filter_flip is explained in this_link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants