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

Identity mapping causes zero rows #2

Open
daviddao opened this issue Mar 25, 2016 · 1 comment
Open

Identity mapping causes zero rows #2

daviddao opened this issue Mar 25, 2016 · 1 comment

Comments

@daviddao
Copy link

Using an identity transformation in transfromerlayer_test.py with all weights set to zero :

Expected output_train shape (1, 1200, 1600, 3)
Actual output_train shape (1, 1200, 1600, 3)
Transformation matrix:
[[ 1.  0.  0.  0.  1.  0.]]

I get following image matrix:

screen shot 2016-03-25 at 6 41 53 pm

However the original image is:

screen shot 2016-03-25 at 6 42 01 pm

Does the row full of zeros have sth to do with the bilinear interpolation? Is it supposed to be like this?
Here the case with 100 fold downsampling:

download 2

@elezar
Copy link

elezar commented Jun 22, 2016

Is this perhaps related to tensorflow/models#193 (comment)?

There it is stated that in the interpolation, the mapping should be between [-1, 1] and [0, width-1]. It seems as if the mapping has been corrected in Lasagne/Lasagne@c8572b2, but not here.

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