Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
isaaccorley committed Apr 14, 2023
1 parent f85565f commit 7cbef78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/conf/ucmerced.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ experiment:
datamodule:
root: "tests/data/ucmerced"
download: true
batch_size: 1
batch_size: 2
num_workers: 0
4 changes: 2 additions & 2 deletions torchgeo/datamodules/ucmerced.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import kornia.augmentation as K
import torch
import torch.nn.functional as F
import torchvision.transforms.functional as F

from ..datasets import UCMerced
from ..transforms import AugmentationSequential
Expand Down Expand Up @@ -35,7 +35,7 @@ def __init__(
def default_transform(
sample: Dict[str, torch.Tensor]
) -> Dict[str, torch.Tensor]:
sample["image"] = F.interpolate(sample["image"], size=256)
sample["image"] = F.resize(sample["image"], size=(256, 256), antialias=True)
return sample

kwargs["transforms"] = kwargs.get("transforms", default_transform)
Expand Down

0 comments on commit 7cbef78

Please sign in to comment.