Skip to content

Conversation

2wins
Copy link
Contributor

@2wins 2wins commented Sep 29, 2018

  • calculation of offset: sign error

Checklist

  • I've tested that my changes are compatible with the latest version of Tensorflow.
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.

Motivation and Context

Description

@DEKHTIARJonathan DEKHTIARJonathan self-requested a review September 29, 2018 11:18
Copy link
Member

@DEKHTIARJonathan DEKHTIARJonathan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the PR number in the Changelog 👍

@DEKHTIARJonathan
Copy link
Member

@zsdonghao if it is good to you, you can approve & merge ;)

"""
o_x = float(x) / 2 + 0.5
o_y = float(y) / 2 + 0.5
o_x = (x - 1) / 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In python2, it doesn't work.
Still need (x - 1) / 2.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, it's my mistake!

@DEKHTIARJonathan DEKHTIARJonathan merged commit 0f688f0 into tensorlayer:master Sep 30, 2018
@DEKHTIARJonathan DEKHTIARJonathan deleted the bug-fix branch September 30, 2018 17:43
luomai pushed a commit that referenced this pull request Nov 21, 2018
* Fix a bug `transform_matrix_offset_center`

- calculation of offset: sign error

* Update CHANGELOG.md

* Add PR number

* minor modification

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

Successfully merging this pull request may close these issues.

4 participants