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

Patch size can now be defined in the settings #1

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

phanfeld
Copy link
Collaborator

@phanfeld phanfeld commented Jul 2, 2024

Replaced PyTorch's affine_grid(.) function by a slightly adapted implementation of perspective_grid(.) to deal with variable patch sizes.

Since the patches are now placed in the images starting from the top left corner instead of the center, the ranges for the values of the transformation matrices had to be adjusted.

Similarly, since this method now allows for the translation vector to be in the range of the dimensions of the whole camera image instead of expecting them to be normalized between [-1, 1], the standard deviation of the noise added to them inside gen_noisy_transformations(.) had to be increased.

@phanfeld phanfeld self-assigned this Jul 2, 2024
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

Successfully merging this pull request may close these issues.

1 participant