Skip to content

Commit

Permalink
Fix RESISC45 dataset stats (#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebrob6 authored May 19, 2023
1 parent bbf6108 commit 2bf52eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions torchgeo/datamodules/resisc45.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ class RESISC45DataModule(NonGeoDataModule):
Uses the train/val/test splits from the dataset.
"""

mean = torch.tensor([127.86820969, 127.88083247, 127.84341029])
std = torch.tensor([51.8668062, 47.2380768, 47.0613924])
# Computed on the train set
mean = torch.tensor([93.89391792, 97.11226906, 87.56775284])
std = torch.tensor([51.84919672, 47.2365918, 47.06308786])

def __init__(
self, batch_size: int = 64, num_workers: int = 0, **kwargs: Any
Expand Down

0 comments on commit 2bf52eb

Please sign in to comment.