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

Some questions about bilinear_kernel.m #10

Open
GuoShi28 opened this issue Jan 31, 2018 · 0 comments
Open

Some questions about bilinear_kernel.m #10

GuoShi28 opened this issue Jan 31, 2018 · 0 comments

Comments

@GuoShi28
Copy link

Some thing wrong when I use 3 channel bilinear kernel. Following is the 2 upsampling results and original images.
qq 20180131192344
qq 20180131192709
My init code is followings:

function net = add_USN_noise(net, layername, varname, parname, filter_size, scale)
% --------------------------------------------------------------------
crop_default = 1;
stride_default = scale;
net.addLayer(layername, ...
dagnn.ConvTranspose('upsample', stride_default,'crop', crop_default,'hasBias',false), ...
varname{1}, varname{2}, parname);

f = net.getParamIndex(parname) ;
filters = single(bilinear_kernel(4,3,3));
net.params(f).value = filters ;
net.params(f).learningRate = 1;
net.params(f).weightDecay  = 1;
net.params(f).trainMethod = 'adam';

end

Do you have any idea of this problem? Thank you.

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

1 participant