Skip to content

Commit

Permalink
Bump kornia from 0.6.9 to 0.6.10 in /requirements (#1123)
Browse files Browse the repository at this point in the history
Bumps [kornia](https://github.com/kornia/kornia) from 0.6.9 to 0.6.10.
- [Release notes](https://github.com/kornia/kornia/releases)
- [Changelog](https://github.com/kornia/kornia/blob/master/CHANGELOG.md)
- [Commits](kornia/kornia@v0.6.9...v0.6.10)

---
updated-dependencies:
- dependency-name: kornia
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Feb 18, 2023
1 parent ffad880 commit 75a1bea
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 27 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ filterwarnings = [
"ignore:The dataloader, .*, does not have many workers which may be a bottleneck:UserWarning",
# pytorch-lightning warns us about using the CPU when a GPU is available
"ignore:GPU available but not used.:UserWarning",
# https://github.com/kornia/kornia/pull/1611
"ignore:`ColorJitter` is now following Torchvision implementation.:DeprecationWarning:kornia.augmentation._2d.intensity.color_jitter",
# https://github.com/kornia/kornia/pull/1663
"ignore:`RandomGaussianBlur` has changed its behavior and now randomly sample sigma for both axes.:DeprecationWarning:kornia.augmentation._2d.intensity.gaussian_blur",

# Unexpected warnings, worth investigating
# pytorch-lightning is having trouble inferring the batch size for ChesapeakeCVPRDataModule and CycloneDataModule for some reason
Expand Down
2 changes: 1 addition & 1 deletion requirements/required.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ setuptools==67.3.1
# install
einops==0.6.0
fiona==1.9.1
kornia==0.6.9
kornia==0.6.10
matplotlib==3.7.0
numpy==1.24.2
omegaconf==2.3.0
Expand Down
4 changes: 2 additions & 2 deletions tests/transforms/test_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
def sample() -> Dict[str, Tensor]:
return {
"image": torch.arange(3 * 4 * 4, dtype=torch.float).view(3, 4, 4),
"mask": torch.arange(4 * 4, dtype=torch.long).view(4, 4),
"mask": torch.arange(4 * 4, dtype=torch.long).view(1, 4, 4),
}


@pytest.fixture
def batch() -> Dict[str, Tensor]:
return {
"image": torch.arange(2 * 3 * 4 * 4, dtype=torch.float).view(2, 3, 4, 4),
"mask": torch.arange(2 * 4 * 4, dtype=torch.long).view(2, 4, 4),
"mask": torch.arange(2 * 4 * 4, dtype=torch.long).view(2, 1, 4, 4),
}


Expand Down
9 changes: 1 addition & 8 deletions torchgeo/datamodules/landcoverai.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,7 @@ def __init__(
K.RandomHorizontalFlip(p=0.5),
K.RandomVerticalFlip(p=0.5),
K.RandomSharpness(p=0.5),
K.ColorJitter(
p=0.5,
brightness=0.1,
contrast=0.1,
saturation=0.1,
hue=0.1,
silence_instantiation_warning=True,
),
K.ColorJitter(p=0.5, brightness=0.1, contrast=0.1, saturation=0.1, hue=0.1),
data_keys=["image", "mask"],
)
self.aug = AugmentationSequential(
Expand Down
9 changes: 1 addition & 8 deletions torchgeo/datamodules/resisc45.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ def __init__(
K.RandomVerticalFlip(p=0.5),
K.RandomSharpness(p=0.5),
K.RandomErasing(p=0.1),
K.ColorJitter(
p=0.5,
brightness=0.1,
contrast=0.1,
saturation=0.1,
hue=0.1,
silence_instantiation_warning=True,
),
K.ColorJitter(p=0.5, brightness=0.1, contrast=0.1, saturation=0.1, hue=0.1),
data_keys=["image"],
)
9 changes: 1 addition & 8 deletions torchgeo/datamodules/spacenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,7 @@ def __init__(
K.RandomHorizontalFlip(p=0.5),
K.RandomVerticalFlip(p=0.5),
K.RandomSharpness(p=0.5),
K.ColorJitter(
p=0.5,
brightness=0.1,
contrast=0.1,
saturation=0.1,
hue=0.1,
silence_instantiation_warning=True,
),
K.ColorJitter(p=0.5, brightness=0.1, contrast=0.1, saturation=0.1, hue=0.1),
data_keys=["image", "mask"],
)
self.aug = AugmentationSequential(
Expand Down

0 comments on commit 75a1bea

Please sign in to comment.