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

Wrong dimension used in translation augmentation #31

Open
gathierry opened this issue Aug 5, 2020 · 0 comments
Open

Wrong dimension used in translation augmentation #31

gathierry opened this issue Aug 5, 2020 · 0 comments

Comments

@gathierry
Copy link

Hi,
When doing translation augmentation, I think x-translation should be computed with img.shape[1] while y-translation in the next line should be calculated with img.shape[0]

T[0, 2] = random.uniform(-translate, translate) * img.shape[0] + border # x translation (pixels)

Please correct me if I got the wrong idea.

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

1 participant