Skip to content

Commit

Permalink
Add issue link
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnair1 committed Jul 4, 2024
1 parent 4b199cd commit 3cde2de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions torchgeo/datamodules/nasa_marine_debris.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def __init__(
self.aug = K.AugmentationSequential(
K.Normalize(mean=self.mean, std=self.std), data_keys=None, keepdim=True
)
# https://github.com/kornia/kornia/issues/2848
self.aug.keepdim = True # type: ignore[attr-defined]

self.collate_fn = collate_fn_detection
Expand Down
1 change: 1 addition & 0 deletions torchgeo/datamodules/vhr10.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def __init__(
self.aug = K.AugmentationSequential(
K.Normalize(mean=self.mean, std=self.std), data_keys=None, keepdim=True
)
# https://github.com/kornia/kornia/issues/2848
self.aug.keepdim = True # type: ignore[attr-defined]

def setup(self, stage: str) -> None:
Expand Down

0 comments on commit 3cde2de

Please sign in to comment.