Skip to content

Commit

Permalink
Revert "extra_args not needed"
Browse files Browse the repository at this point in the history
This reverts commit 859f24e.
  • Loading branch information
adamjstewart committed Mar 15, 2024
1 parent 4c05652 commit 9acf859
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions torchgeo/datamodules/sentinel2cdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import kornia.augmentation as K
import torch
from kornia.constants import DataKey, Resample

from ..datasets import CDL, Sentinel2, random_grid_cell_assignment
from ..samplers import GridGeoSampler, RandomBatchGeoSampler
Expand Down Expand Up @@ -67,6 +68,9 @@ def __init__(
K.RandomVerticalFlip(p=0.5),
K.RandomHorizontalFlip(p=0.5),
data_keys=["image", "mask"],
extra_args={
DataKey.MASK: {"resample": Resample.NEAREST, "align_corners": None}
},
)

self.aug = AugmentationSequential(
Expand Down

0 comments on commit 9acf859

Please sign in to comment.