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

fix(cuboid_transformer): Modified the argument order of '_generalize_padding' so that 'pad_h' comes before 'pad_w'. #47

Conversation

SungminLee0810
Copy link
Contributor

@SungminLee0810 SungminLee0810 commented May 24, 2023

Issue:

In Line 280 of the PatchMerging3D class, the order of the pad_h and pad_w arguments in _generalize_padding is incorrect.
AS-IS: x = _generalize_padding(x, pad_t, pad_w, pad_h, padding_type=self.padding_type)
TO-BE: x = _generalize_padding(x, pad_t, pad_h, pad_w, padding_type=self.padding_type)

Description of changes:

The order of arguments in '_generalize_padding' has been modified so that pad_h comes before pad_w.

--
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -277,20 +281,21 @@ def forward(self, x):
T += pad_t
H += pad_h
W += pad_w
x = _generalize_padding(x, pad_t, pad_w, pad_h, padding_type=self.padding_type)
x = _generalize_padding(x, pad_t, pad_h, pad_w, padding_type=self.padding_type)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is fixed.

@gaozhihan
Copy link
Contributor

Thanks for fixing! Could you help delete unnecessary changes such as indentation and spacing?

@SungminLee0810
Copy link
Contributor Author

@gaozhihan , I'm sorry. Autopep8 applied automatically, resulting in unnecessary indentation and spaces. I will close this PR and pull request it again in another branch.

@gaozhihan gaozhihan added the bug Something isn't working label May 25, 2023
@gaozhihan
Copy link
Contributor

It's done in PR #48. Thank you!

@SungminLee0810 SungminLee0810 deleted the hotfix_cuboid_padding branch May 25, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants