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

affine_transformations.py random_shift function tx ty? #348

Open
@chenying99

Description

@chenying99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    imageRelated to images

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions