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

Unexpected Output #2

Open
nabeel3133 opened this issue Feb 20, 2019 · 4 comments
Open

Unexpected Output #2

nabeel3133 opened this issue Feb 20, 2019 · 4 comments

Comments

@nabeel3133
Copy link

I'm trying to train the STN. The training dataset which I've provided contains MNIST dataset images which are rotated 90 degree and the testing dataset contains simple MNIST dataset images. The output I'm getting is straight MNIST images. I was expecting the output to contain characters which are rotated 90 degrees. Can you please guide me on how this works?

@zsdonghao
Copy link
Owner

Hi, could you show your result?

@nabeel3133
Copy link
Author

Test image:
_imgs_original

Distortion done by STN:
_imgs_distorted

Result after 499 Epoch:
_imgs_distorted_after_stn_499

@zsdonghao
Copy link
Owner

To rotate an image, you need to set the values in the transformation matrix, see https://en.wikipedia.org/wiki/Affine_transformation

@nabeel3133
Copy link
Author

I have rotated the training and validation images 90 degree. Here is the code snippet.
image


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