Skip to content

For kernel_size parameter, the doc of GaussianBlur() doesn't explain which is width or height #8907

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

Open
hyperkai opened this issue Feb 15, 2025 · 1 comment

Comments

@hyperkai
Copy link

hyperkai commented Feb 15, 2025

πŸ“š The doc issue

For kernel_size parameter, the doc of GaussianBlur() doesn't explain which is width or height as shown below so we don't know which is which:

Parameters:

  • kernel_size (int or sequence) – Size of the Gaussian kernel.

Suggest a potential alternative/fix

So the doc should explain which is width or height as shown below:

Parameters:

  • kernel_size (int or sequence) – Size of the Gaussian kernel [width, height].

Or:

Parameters:

  • kernel_size (int or sequence) – Size of the Gaussian kernel [height, width].
@NicolasHug
Copy link
Member

It will always be H and W as in pytorch, but feel free to submit a PR to make this clearer

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

2 participants