Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

affine_transformations.py random_shift function tx ty? #348

Open
chenying99 opened this issue Oct 2, 2021 · 1 comment
Open

affine_transformations.py random_shift function tx ty? #348

chenying99 opened this issue Oct 2, 2021 · 1 comment
Labels
image Related to images

Comments

@chenying99
Copy link

chenying99 commented Oct 2, 2021

keras-preprocessing/keras_preprocessing/image/affine_transformations.py

line 85 86

tx = np.random.uniform(-hrg, hrg) * h
ty = np.random.uniform(-wrg, wrg) * w

should be:

ty = np.random.uniform(-hrg, hrg) * h
tx = np.random.uniform(-wrg, wrg) * w

@chenying99 chenying99 added the image Related to images label Oct 2, 2021
@StanislawAntol
Copy link

Perhaps this was a bug introduced to work around the buggy code that was fixed in this PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
image Related to images
Projects
None yet
Development

No branches or pull requests

2 participants