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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PadTo to kornia.augmentation #1286

Merged
merged 5 commits into from Sep 19, 2021
Merged

Add PadTo to kornia.augmentation #1286

merged 5 commits into from Sep 19, 2021

Conversation

edgarriba
Copy link
Member

Changes

Fixes #1283

Type of change

  • 馃摎 Documentation Update
  • 馃И Tests Cases
  • 馃悶 Bug fix (non-breaking change which fixes an issue)
  • 馃敩 New feature (non-breaking change which adds functionality)
  • 馃毃 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 馃摑 This change requires a documentation update

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Did you update CHANGELOG in case of a major change?

@edgarriba
Copy link
Member Author

@shijianjian I did the skeleton - please check about some of the details. Also not sure about how to test the AugmentationSequential.

@edgarriba edgarriba added the 1 Priority 1 馃毃 High priority label Sep 14, 2021
kornia/augmentation/augmentation.py Outdated Show resolved Hide resolved
kornia/augmentation/augmentation.py Show resolved Hide resolved
kornia/augmentation/augmentation.py Show resolved Hide resolved
def compute_transformation(self, image: torch.Tensor, params: Dict[str, torch.Tensor]) -> torch.Tensor:
return self.identity_matrix(image)

def apply_transform(
self, image: torch.Tensor, params: Dict[str, torch.Tensor], transform: Optional[torch.Tensor] = None
self, input: torch.Tensor, params: Dict[str, torch.Tensor], transform: Optional[torch.Tensor] = None
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

the function signature will need to align with the parent class. If you gonna work on it, I would suggest to do it at once, not for one or two functions for consistency. Also, please keep in mind about the deprecation warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Augmentation that pads inputs to a fixed size
2 participants